SmallJoker
3d10d4e859
Serialize: Throw exception on incomplete reads ( #16796 )
...
Several mistakes were made past where the stream was expected to raise
the EOF flag when reaching the end of stream. That is incorrect. The
flag is only raised if the current read operation fails.
This commit unifies all istream compatibility code to use 'canRead'
for reliable EOF detection. An exception is now thrown when a
value cannot be read completely (e.g. missing bytes).
Version comments are added for easier backtracing.
2026-01-03 11:13:14 +01:00
sfan5
8d1db8413f
Make UniqueQueue use unordered_set
2025-12-24 11:57:05 +01:00
siliconsniffer
f91e58abab
Allow taking screenshots in main menu ( #16749 )
...
Co-authored-by: sfan5 <sfan5@live.de >
Co-authored-by: siliconsniffer <siliconsniffer@users.noreply.github.com >
2025-12-21 12:08:16 +01:00
sfan5
cf696239e4
Profiler and profiler graph improvements
2025-12-07 21:43:27 +01:00
lhofhansl
e90c724cfd
Use emplace instead of insert where applicable ( #16699 )
2025-11-27 11:27:34 +01:00
sfan5
aff1abd05d
Some random code cleanups
2025-11-19 20:00:09 +01:00
cx384
ac0ebf39ad
Clean up header includes ( #16674 )
2025-11-16 15:00:51 +01:00
sfan5
7a6e639d61
Tune "block send throttling while building" optimization ( #16614 )
...
it can lead to terrain not loading/updating at all if you're constantly building and moving.
for more see the IRC logs <https://irc.luanti.org/luanti/2025-10-26#i_6293100 >
2025-11-04 11:44:49 +01:00
cx384
93ccb4b355
Add inventory image animation API ( #16538 )
2025-10-26 18:48:53 +01:00
sfan5
06250f8b27
Clean up RequestQueue a bunch
2025-10-07 11:10:19 +02:00
sfan5
d932f34693
Add core.strip_escapes() ( #16485 )
2025-09-14 23:01:43 +02:00
sfan5
079169612d
Fix Irrlicht snprintf problems and UB in my_string_to_double
2025-08-24 19:01:18 +02:00
sfan5
e835673c5e
Extract bitmap class
2025-08-19 17:34:22 +02:00
sfan5
55cca34ee9
Cache getTextureDirs()
2025-08-10 15:26:39 +02:00
Lucas OH
93dd22b901
Clean up unused Forward Declarations ( #16324 )
2025-08-02 10:07:45 +02:00
sfan5
d679261488
Rewrite broken logic in blit_with_alpha2
2025-07-28 11:16:07 +02:00
Lars Müller
23bf50a07c
Document & extend testing for rotation conventions ( #16200 )
...
* Document Luanti rotation conventions
* Add test for setPitchYawRollRad (entity) rotation conventions
* Test and document that `vector.rotate` uses (extrinsic) Z-X-Y rotation order
2025-07-13 17:11:12 +02:00
Lucas OH
ce2380b58e
Include header files in CMake sources ( #16297 )
2025-07-12 13:23:35 +02:00
sfence
4f42b4308c
Add persistent unique identifiers for objects ( #14135 )
2025-07-09 10:40:26 +02:00
Lars Müller
61551cfc3a
Remove irr namespace ( #16309 )
2025-07-09 10:35:52 +02:00
Daniel Cristian
4700939949
Fix uninitialized variable warning in generate_srp_verifier_and_salt
2025-05-18 21:59:57 +02:00
Lars Müller
f4285a59ac
Purge some dead code (mostly Irrlicht) ( #16111 )
...
* Remove obsolete Irrlicht attributes system
* Remove dead GUI element types
* Remove some obsolete Irrlicht headers
* Fix some oopsies from d96f5e1
2025-05-04 16:31:44 +02:00
Lars Müller
d96f5e1c76
MetaDataRef: Make set_float preserve numbers exactly ( #16090 )
2025-05-02 21:27:00 +02:00
sfan5
7c619bdc9a
Improve usability of Prometheus metrics backend ( #16060 )
2025-04-23 09:30:04 +02:00
Lars Müller
a3648b0b16
Add spatial index for objects ( #14631 )
2025-04-08 08:44:53 +02:00
sfan5
1281173e50
Use secure randomness to seed internal RNG
2025-03-30 18:17:19 +02:00
sfan5
ae0f955a0e
Add nodiscard attribute to helper functions where it makes sense
2025-03-30 18:17:19 +02:00
sfan5
dea95c7339
Reduce transitive includes by moving a class
2025-03-30 18:17:19 +02:00
sfan5
b146673c3d
Remove old mystrtok_r for MinGW
2025-03-30 18:17:19 +02:00
sfan5
e73eed247e
Apply some refactoring/cleanup to mainly util functions
2025-03-30 18:17:19 +02:00
sfan5
7b746d21f9
Make sure generated blocks have their timestamp set
...
behavior change: newly generated blocks are no longer momentarily activated.
this shouldn't matter for anyone and did not consistently apply to all blocks anyway
addresses issue from #15902 for new maps(!)
2025-03-26 20:49:43 +01:00
sfan5
afb15978d9
Clean up and compress some pre-join packets ( #15881 )
2025-03-11 20:00:07 +01:00
sfan5
7892541383
Various random code cleanups
2025-03-04 19:53:01 +01:00
sfan5
ee9258cefd
Clean up some packet-related code
2025-02-26 12:21:57 +01:00
sfan5
ba62808fe8
Basic camera control API ( #15796 )
2025-02-19 18:45:45 +01:00
cx384
e9826f7819
Move EnumString to separate file and add enum_to_string ( #15714 )
2025-01-26 19:17:14 +01:00
SFENCE
af3f696423
Code style fixes.
2025-01-21 16:29:12 +01:00
cosin15
7053348e31
Fix buggy memcpy call in a template ( #15672 )
2025-01-14 20:26:29 +01:00
sfan5
612d4f9656
Improve quicktune feature a bit
2024-12-24 15:27:08 +01:00
DS
bcbee873e8
Use openssl's sha1 and sha256, optionally ( #15472 )
2024-12-10 22:00:43 +01:00
AFCMS
e545e96d2b
Make string to v3f parsing consistent, replace core.setting_get_pos() by core.settings:get_pos() ( #15438 )
...
Co-authored-by: sfan5 <sfan5@live.de >
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com >
2024-12-04 18:19:46 +01:00
sfence
d849d51c2d
Replace licensing text in headers (LGPLv2.1) ( #15321 )
2024-10-28 15:57:39 +01:00
sfan5
b61c83a19d
Move some more sources to shared target
2024-10-16 19:39:59 +02:00
sfan5
37095f3e49
Change the preprocessor macro that differs server/client builds
2024-10-16 19:39:59 +02:00
y5nw
e3aa79cffb
Gettext and plural support for client-side translations ( #14726 )
...
---------
Co-authored-by: Ekdohibs <nathanael.courant@laposte.net >
Co-authored-by: y5nw <y5nw@protonmail.com >
Co-authored-by: rubenwardy <rw@rubenwardy.com >
2024-10-13 11:29:08 +02:00
sfan5
99b6315c1a
Make logging respect stream flushes
...
also add override keyword and fix overflow() behavior
2024-10-12 22:37:17 +02:00
paradust7
3a7c8279bf
Split log.h to speed up compilation ( #15258 )
2024-10-09 16:24:44 +02:00
sfan5
c1ea49940b
Add questionable workaround for env lock contention
2024-09-26 17:31:49 +02:00
sfan5
7ae51382c8
Refactor ABM/LBM related code
2024-09-20 15:05:26 +02:00
DS
4aec4fbe6f
Add support for Tracy profiler ( #15113 )
2024-09-15 13:47:45 +02:00