sfan5
1281173e50
Use secure randomness to seed internal RNG
2025-03-30 18:17:19 +02:00
sfan5
785c042f1f
Drop gzip support from CZipReader
...
This allowed reading concatenated gzip-compressed files as if they were an archive.
Aside from being generally uncommon we literally don't need this.
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
e6acc4e7ed
Delete TestCAO
2025-03-30 18:17:19 +02:00
sfan5
2602d03b34
Split ABM/LBM from serverenvironment.cpp to own file
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
89e3bc8d56
Improve std::hash<SMaterial> implementation
2025-03-30 18:17:19 +02:00
wrrrzr
d7edf0b229
Set StartupWMClass in desktop file
...
see #15942
2025-03-30 18:17:10 +02:00
wrrrzr
4bc366b984
Refactor createShadowRenderer
2025-03-30 18:16:45 +02:00
cx384
41d43e8d95
Document server texture pack in texture_packs.md ( #15951 )
2025-03-30 18:16:34 +02:00
y5nw
4cd2273349
Refactor input handler ( #15933 )
2025-03-30 18:16:20 +02:00
SmallJoker
309c0a0cb6
Formspec: fix clamped scroll offset of scroll_containers larger than 1000px
2025-03-30 18:15:38 +02:00
cx384
882f132062
Document special items
2025-03-30 18:15:11 +02:00
cx384
af1ffce084
Improve hand override documentation
2025-03-30 18:15:11 +02:00
sfan5
a94c9a73ba
Move all registration logic into core.register_item for consistency
2025-03-29 10:21:15 +01:00
sfan5
915446417d
Improve warning message for registration table reuse
2025-03-29 10:21:15 +01:00
lhofhansl
8f8d7c4088
Check if a block is already in the emege queue before checking occlusion culling and trying to reemerge ( #15949 )
2025-03-28 11:31:54 -07:00
grorp
b0bc6ce637
TouchControls: Take FOV into account for camera movement ( #15936 )
2025-03-28 07:43:59 -04:00
lhofhansl
fbc525d683
Restore behavior of emergequeue_limit_total ( #15947 )
...
* And make sure `emergequeue_limit_total` is >= max(`emergequeue_limit_diskonly`, `emergequeue_limit_generate`)
2025-03-27 18:59:38 -07:00
sfan5
db15bc6466
Some more random code cleanups
2025-03-26 20:49:43 +01:00
sfan5
f63436c8d3
Add basic unittests for LBMManager
2025-03-26 20:49:43 +01: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
ed40ea010b
Improve edge case handling in LBMManager
2025-03-26 20:49:43 +01:00
sfan5
3dca2cd26a
Strip leading colon from LBM names
2025-03-26 20:49:43 +01:00
sfan5
71cd25a798
Preserve LBM ordering when running them
...
(broken in 811adf5d42
)
2025-03-26 20:49:43 +01:00
sfan5
ea1e8797a3
Fix performance bug with applying LBMs
2025-03-26 20:49:43 +01:00
JosiahWI
8fc7bf2af4
Fix core.get_content_info
docs and harden implementation ( #15925 )
2025-03-26 19:03:53 +01:00
SmallJoker
95d6008332
IrrlichtMt: Fix orientation of IRenderTarget-textures ( #15932 )
...
Textures created through a render target are flipped along the X axis.
For the same reason, screenshots must be flipped back as well ('IVideoDriver::createScreenShot').
This commit implements the same flipping concept in two places:
1. Batch rendering of images (mostly used by fonts/text)
2. In-world rendering of such textures
2025-03-26 18:32:23 +01:00
grorp
b99f90ed80
Mainmenu: Trim whitespace from player name, address, port
2025-03-26 18:31:44 +01:00
Ricardo Costa
251bf0ec31
Fix possible nullptr dereference in serverpackethandler.cpp
2025-03-26 18:31:27 +01:00
ashtrayoz
b1363fce8e
Fix logic inversion for dynamic media (server-side fix) ( #15870 )
2025-03-24 21:35:20 +01:00
y5nw
4ba438a7ec
Improve KeyPress handling ( #15923 )
...
* Pass KeyPress by value
* TouchControls: add setting change callback for keybindings
2025-03-21 12:07:51 +01:00
grorp
ead44a27ca
TouchControls: Implement an option for dig/place buttons ( #15845 )
2025-03-21 12:06:44 +01:00
sfan5
1f14b7cb1b
Make remote media exclusively use GET for hash set ( #15885 )
2025-03-19 22:06:34 +01:00
sfan5
a9a3b05cc3
Prevent registration of certain new content after load time
2025-03-19 22:05:01 +01:00
sfan5
ca047c3e58
Warn on core.override_item() after server startup
2025-03-19 22:05:01 +01:00
sfan5
2540667f04
Warn if metatable passed to itemdef registration function
2025-03-19 22:05:01 +01:00
JosiahWI
4125ce877d
Do not discover mod directories that fail parsing ( #15917 )
...
The root issue of the unit test failure is that all directories that are found in the mod search are counted as mods, even if they are detected to be invalid as such by the parser. For example, the presence of an init.lua file is required, and the parser will return false if one is not found. This return value was completely ignored. Simply counting the mod conditionally on the parsing success makes the modserver tests pass on MSVC.
2025-03-19 18:43:19 +01:00
SmallJoker
f1364b1e0b
GUI: Use the client's fonts for 'Open URL?' dialogues
...
This popup is related to user safety, thus it should not
use server-provided font media files.
2025-03-19 18:42:26 +01:00
SmallJoker
5b2b2c7796
Game: disable 'toggle_sneak_key' while flying
2025-03-19 18:42:26 +01:00
y5nw
cc65c8bd70
SDL: Use scancodes for keybindings ( #14964 )
...
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2025-03-16 20:35:34 +01:00
cx384
e0378737b7
Fix overrideable hand ToolCapabilities and range ( #15743 )
2025-03-16 20:03:31 +01:00
Xiaochuan Ye
d085f0fb52
Document core.MAP_BLOCKSIZE constant in lua_api.md ( #15911 )
2025-03-16 20:02:42 +01:00
AFCMS
efded8f0bb
Bump OARS content rating to 1.1
2025-03-16 17:57:18 +01:00
Erich Schubert
8ac7c451e1
update documentation
2025-03-16 17:56:58 +01:00
Erich Schubert
1f3cf59c7f
Clean up position encoding
...
We can simply add 0x800800800 to the encoding, then use bit masking.
This works because adding 0x800 maps -2048:2047 to 0x000:0xFFF.
And 0x800800800 is (0x800 << 24 + 0x800 << 12 + 0x800) for x,y,z.
After bitmasking, -0x800 restores the original value range.
2025-03-16 17:56:58 +01:00
Erich Schubert
c439d784ac
add unit tests for map block position encoding
2025-03-16 17:56:58 +01:00
sfan5
42ac5b2f40
Mostly deal with problems caused by polygon offset ( #15867 )
2025-03-16 17:56:32 +01:00