grorp
f07e1026ac
Allow sync HTTP fetches to be interrupted to fix hanging ( #14412 )
...
Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
2024-03-12 20:09:43 +01:00
SmallJoker
32f68f35cf
Avoid packets getting sent to disconnected players ( #14444 )
...
Many functions expect RemotePlayer to have a valid peer ID,
this however is not the case immediately after disconnecting
where the object is still alive and pending for removal.
ServerEnvironment::getPlayer(const char *, bool) now only
returns players that are connected unless forced to.
2024-03-10 13:24:35 +01:00
SmallJoker
02a893d613
Client: fix failing assert on empty texture name
2024-03-10 10:50:04 +01:00
sfan5
d88f0866b7
Reduce translations log spam
2024-03-06 22:33:32 +01:00
Lars Müller
bf52d1e624
Fix attached sounds stopping if objects are removed serverside ( #14436 )
...
Restores backwards compatibility for death sounds or other sounds that are not supposed to be "cut off" abruptly.
---------
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: grorp <gregor.parzefall@posteo.de>
2024-03-06 20:36:02 +01:00
y5nw
fc80f65a6d
Try to preserve metatable when exchanging data with the async env ( #14369 )
...
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
2024-03-06 18:04:49 +01:00
sfan5
badd42789a
Move PlayerSettings class to client code
2024-03-06 18:03:57 +01:00
sfan5
c524c52baa
Fix some common SAO methods to not generate useless update packets
2024-03-06 18:03:57 +01:00
sfan5
585ca90ae0
Reorder ObjectProperties struct
2024-03-06 18:03:57 +01:00
sfan5
e734b3f0d8
Fix core.get_node_or_nil in emerge env
...
"ignore" does not mean unloaded, we have to properly check it.
2024-03-03 20:16:32 +01:00
sfan5
9b97147637
Fix assertion failure in clientlauncher.cpp
2024-03-03 19:11:37 +01:00
DS
d4d4712361
Implement get_node with a get_node_raw ( #14384 )
...
Add /bench_bulk_get_node
Considerably improves the execution speed of core.get_node
2024-03-03 15:53:23 +01:00
cx384
879f7e9f03
Refactor tile.cpp/h parts except texturesource.cpp
2024-03-03 15:52:05 +01:00
cx384
aaf77025b6
Split up tile.cpp/h
2024-03-03 15:52:05 +01:00
Desour
cdce33dd05
Fix some narrowing warnings
2024-03-02 01:56:25 +01:00
Desour
b10797b3d5
Add missing include in container.h
...
BUILD_BENCHMAKRS builds were broken.
2024-03-02 01:47:03 +01:00
sfan5
e73e562a63
Allow curl to use all content encodings
2024-03-01 18:22:59 +01:00
grorp
e40417f687
Allow giving "pointabilities" to Lua raycasts ( #14390 )
2024-03-01 17:12:13 +01:00
Gregor Parzefall
aac616fcc5
Avoid visible camera jumps because of touchscreen_threshold
2024-03-01 17:11:46 +01:00
Gregor Parzefall
fa0745f7da
Adjust touchscreen_sensitivity to display density
2024-03-01 17:11:46 +01:00
Gregor Parzefall
00a3e6bbd7
Touchscreen: Allow camera movement while digging without touch_use_crosshair
2024-03-01 17:11:46 +01:00
sfan5
bb7f57b095
VBO-related optimizations and improvements ( #14395 )
2024-02-29 17:20:57 +01:00
sfan5
d85c842ce9
Refactor fog shader to reuse Irrlicht values
2024-02-29 17:20:50 +01:00
sfan5
dce166dc93
Support deleting shader materials
2024-02-29 17:20:50 +01:00
sfan5
13a0e5fb4a
Share FpsControl code between game and menu
2024-02-29 17:20:50 +01:00
sfan5
0c3a4cc7b9
Improve ergonomics of CachedShaderSetting
2024-02-29 17:20:49 +01:00
sfan5
e9ab5bc223
Factor shadow constants out of MainShaderConstantSetter
2024-02-29 17:20:49 +01:00
sfan5
5da18d34ba
Properly warn that shader queue is unimplemented
2024-02-29 17:20:49 +01:00
sfan5
09d542dfe0
Drop enable_vbo setting
...
Consistently applying this setting requires some code work,
because Irrlicht does not provide a global toggle.
At the same time I don't see any reason for someone to disable this.
2024-02-29 17:20:49 +01:00
sfan5
5280863300
Set VBO hints in more places
2024-02-29 17:20:49 +01:00
sfan5
fbec378869
Fix more type promotion mistakes
...
Someone of these are probably actual bugs and gcc totally doesn't care to warn about them, wtf?
This issue seems to be new with the IrrlichtMt update.
2024-02-26 22:07:40 +01:00
sfan5
9fcd7f2dc0
Fix clang-tidy type promotion errors
2024-02-26 20:47:47 +01:00
sfan5
5d8a22066c
Change how max_lag is calculated and reported ( #14378 )
...
-Change how max_lag is calculated and reported
- Cap singleplayer step at 60Hz
- Clarify dedicated_server_step
2024-02-26 20:46:57 +01:00
sfence
63a9853811
Remove attached sounds when the active object is removed ( #14341 )
2024-02-25 22:10:39 +00:00
rubenwardy
f4eba3bfba
Add support for ContentDB package translation ( #14410 )
2024-02-25 22:09:52 +00:00
sfan5
762fca538c
Expose SHA256 algorithm to Lua ( #14403 )
...
Co-authored-by: chmodsayshello <chmodsayshello@hotmail.com>
2024-02-25 18:12:23 +01:00
SmallJoker
fa1d80b53b
MetaData: restore undocumented set_string behaviour ( #14396 )
2024-02-25 16:03:05 +01:00
rubenwardy
b4be483d3e
Add support for translating content titles and descriptions ( #12208 )
2024-02-24 19:13:07 +00:00
grorp
57de599a29
Restore pre-5.9.0-dev behavior of touch_use_crosshair=false shootline ( #14389 )
...
* Fix incorrect shootline after releasing pointer if touch_use_crosshair=false
This happened because Android reuses pointer IDs.
Also includes a refactor to merge "m_known_ids" and "m_pointer_pos".
* Restore pre-5.9.0-dev behavior of shootline when !m_has_move_id
2024-02-24 13:12:53 +01:00
sfan5
492aab20fe
Fix compiler warnings
2024-02-24 12:39:12 +01:00
lhofhansl
0d4b489545
Detect air-only blocks instead of day/night differences ( #14264 )
...
* Detect air-only blocks instead day/night differences
* Write !is_air into the former day-night-diff bit on disk, so that old server can still read maps written by new servers
* Only set is_air bit when reading from disk
2024-02-22 21:47:42 -08:00
numzero
0d30a3071a
Add meshgen tests
2024-02-22 15:45:17 +00:00
numzero
753f03ff6a
Add mesh comparison functions, for tests
2024-02-22 15:45:17 +00:00
numzero
bf2098c07f
Decouple MeshMakeData from Client
2024-02-22 15:45:17 +00:00
numzero
2f35b121a4
Const correctness
2024-02-22 15:45:17 +00:00
David Heidelberg
34286d77c7
Allow toggling touchscreen mode at runtime ( #14075 )
...
Signed-off-by: David Heidelberg <david@ixit.cz>
Co-authored-by: Gregor Parzefall <gregor.parzefall@posteo.de>
2024-02-22 15:44:49 +00:00
sfan5
e3cc26cb7c
Irrlicht support changes ( #14383 )
2024-02-19 21:14:47 +01:00
Lars Müller
4acbd59162
Support absent scene node names ( #14330 )
...
Contains a hack to support IrrlichtMT revision 14 for now (until we release revision 15)
2024-02-18 11:39:16 +01:00
DS
1e316a9704
Don't use a reference for RaycastState::m_pointabilities ( #14376 )
2024-02-17 18:36:20 +01:00
sfan5
6ca214fefc
Introduce std::string_view
into wider use ( #14368 )
2024-02-17 15:35:33 +01:00
sfan5
f483d10c95
Switch to LLVM-based MinGW toolchain ( #14329 )
2024-02-16 21:36:19 +01:00
sfan5
933432e62d
Annotate Lua packer with more comments
2024-02-16 12:34:40 +01:00
sfan5
2b97fead9e
Fix some potential iterator invalidation issues
2024-02-16 12:34:40 +01:00
cx384
9ac6d330b4
Fix minimap textures overwrite ( #14349 )
2024-02-15 21:52:41 +01:00
DS
4843890c56
Inline g/setPixel in imageCleanTransparent ( #14323 )
2024-02-15 19:38:23 +01:00
lhofhansl
c81e0b7433
Allow shaders with disabled post processing pipeline ( #14338 )
...
- Allow disabling of the post processing pipeline while leaving shaders enabled
- Also disable post processing on Android by default
2024-02-15 08:25:33 -08:00
sfan5
ce97210eb1
Refactor how script api reads current mod name
...
This is to prevent future mistakes and make it clearer whether
the mod name can be trusted depending on how it is retrieved.
2024-02-15 11:06:21 +01:00
sfan5
cb5fa56e17
Remove insecure environment from async and emerge environment
2024-02-15 11:06:21 +01:00
fuzun
6cbb9193ea
Fix undefined behaviors ( #14365 )
...
* Initialize member `floats` in ContentFeatures
* Do not assign big double to u32
* Do not assign negative floating point number to unsigned integer
2024-02-15 11:05:42 +01:00
sfan5
3cac17d23e
Lua on each mapgen thread ( #13092 )
2024-02-13 22:47:30 +01:00
sfan5
d4b107e2e8
Enable dynamic_add_media to take the file data instead of a path
2024-02-13 22:44:10 +01:00
sfan5
c90ebad46b
Allow specifying name for dynamic media files
2024-02-13 22:44:10 +01:00
sfan5
af69d4f7a9
Allow dynamic_add_media at mod load time
2024-02-13 22:44:10 +01:00
cx384
7901087466
Rename MINETEST_SUBGAME_PATH
to MINETEST_GAME_PATH
( #14351 )
2024-02-12 23:21:19 +01:00
paradust7
e2ccd14c05
Allow using VBOs for meshes all the way down to 4 vertices ( #14366 )
...
This may improve performance substantially if there are many meshes with "few" vertices that would otherwise be retransmitted to the GPU every frame. In testing, this does not seem to decrease performance, even if as few as 4 vertices are used (e.g. particles).
2024-02-12 23:20:48 +01:00
Lars Mueller
a14320fc44
Improve deprecation error messages
2024-02-12 22:58:26 +01:00
David Heidelberg
eb52a149a0
Enable IPO/LTO by default except for debug builds ( #14198 )
...
Test case:
```
$ cmake . -DRUN_IN_PLACE=TRUE -DCMAKE_BUILD_TYPE=Release -DBUILD_SERVER=TRUE -DENABLE_TOUCH=FALSE
minetest minetestserver
W/o LTO: 13M 7.3M
W/ LTO: 11M 5.9M
difference: 15% 19%
```
Also fixes various compiler warnings resulting from compilation using LTO.
---------
Signed-off-by: David Heidelberg <david@ixit.cz>
2024-02-09 00:01:12 +01:00
cx384
adaa4cc2f3
Move hard coded minimap to builtin ( #14071 )
2024-02-07 20:13:23 +01:00
grorp
f2b99332d9
Add Lua API function to resolve node/collision/selection boxes ( #13964 )
2024-02-06 20:45:16 +01:00
sfence
83f779c52d
Fix active object adding to not generated block ( #14311 )
2024-02-04 21:24:08 +01:00
sfan5
c9e10e1dd9
Drop valgrind from CI and instead enable ASan
...
The recently added ioctl use is reported as a false-positive by valgrind.
I tried moving it to different compilers/versions two times and only
hit further issues that were valgrind's fault.
Also includes a tiny fix.
2024-02-04 21:23:05 +01:00
sfan5
4259ac96ea
Optimize fs::CopyFileContents on Linux and Windows
2024-02-04 21:23:05 +01:00
sfan5
714c9361ea
Add unit tests for fs::CopyFileContents
2024-02-04 21:23:05 +01:00
sfan5
93381014a0
Bypass media transfer in single player
2024-02-04 21:23:05 +01:00
Lars Müller
1d9c9710d7
Fix short raycasts missing large objects ( #14339 )
...
Increases the tolerance from one node to five nodes.
Also optimizes the "sphere" used for pre-filtering entities
to start in the middle of the line segment rather than at the start.
2024-02-04 14:04:05 +01:00
SmallJoker
e7dbd325d2
RemotePlayer: make peer ID always reflect the validity of PlayerSAO ( #14317 )
...
Upon disconnect, RemotePlayer still had a peer ID assigned even though
the PlayerSAO object was maked as gone (for removal). This commit makes
that the following always holds true:
(!sao || sao->isGone()) === (peer_id == PEER_ID_INEXISTENT)
2024-02-02 22:13:24 +01:00
techno-sam
176e674a51
Add wear bar color API ( #13328 )
...
---------
Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
Co-authored-by: grorp <gregor.parzefall@posteo.de>
2024-02-02 21:21:00 +01:00
sfan5
e10d8080ba
Add flag to control mgv6 temple generation ( #14293 )
2024-01-30 21:52:04 +01:00
sfan5
9da1354f3a
Fix missing limit check for block y pos ( #14320 )
2024-01-30 21:51:51 +01:00
sfan5
e1f6108789
Revert class forward declaration in {client,server}opcodes.h
...
closes #14324
2024-01-30 17:04:12 +01:00
Lars Mueller
40bf88ac74
Performance: Limit blitting work to overlapping area
2024-01-28 13:01:54 +01:00
sfan5
ffec698d3e
Change how [combine parameters are checked
...
the old checks were too strict
2024-01-28 13:01:54 +01:00
grorp
fbec168e91
Only pause rendering if the Android activity is stopped ( #14211 )
2024-01-27 14:37:00 +01:00
sfan5
89f3502b56
Move Server ban check to different point
2024-01-27 10:33:32 +01:00
sfan5
5dbc1d4c08
Move some files to src/server/
2024-01-27 10:33:32 +01:00
sfan5
c0f852e016
Change NetworkPacket to reserve instead of resize
...
also make the bool serialization clearer and move the constructor
to the header file
2024-01-27 10:33:32 +01:00
sfan5
397682a5b0
Clean up client and server command sending / tables
2024-01-27 10:33:32 +01:00
grorp
2b99dabdac
Touchscreen: Abort ongoing short taps if touch interaction mode changes ( #14305 )
2024-01-26 23:19:06 +01:00
sfan5
4158759265
Move mtevent.h to src/client/
2024-01-26 22:10:36 +01:00
sfan5
8927e7caf6
Handle some edge cases in tile images
2024-01-26 22:10:36 +01:00
sfan5
a46fe79939
Reduce code duplication in tile.cpp
2024-01-26 22:10:36 +01:00
lhofhansl
2ef080a51b
Slight simplification of RemoteClient::getNextBlocks(...) ( #14302 )
2024-01-25 11:32:18 -08:00
Sokomine
4468813d47
Show more lines in chat scrollback buffer ( #14290 )
2024-01-24 19:41:29 +01:00
Lars Mueller
6a2eb4da07
Restore pointability backwards compatibility
2024-01-23 23:30:28 +01:00
sfan5
731b84d725
Reduce some instances of useless data shuffling
2024-01-23 22:34:36 +01:00
sfan5
362e4505e8
Minor improvements to media request / announce code
...
I had to throw away the code switching sendRequestedMedia to
a bin packing algorithm because it actually performed worse. :(
2024-01-23 22:34:36 +01:00
sfan5
13013d1b8b
Fix client loading not aborting correctly in certain cases
2024-01-23 22:34:36 +01:00
sfan5
6df0de565f
Check media requests on the server more carefully
2024-01-23 22:34:36 +01:00
sfan5
89eabb5803
Drop speed tests and some other unused code from clientlauncher.cpp
2024-01-23 22:34:36 +01:00
sfan5
6aa4f14a28
Drop some unneeded MOD_REASONs
2024-01-23 22:34:36 +01:00
sfan5
be7844192b
Don't save blocks asap for only lighting updates
2024-01-23 22:34:36 +01:00
sfan5
9e3a11534f
Allow fog color to be overriden properly ( #14296 )
2024-01-23 22:33:33 +01:00
grorp
a29d3cf074
Save the settings in more cases to avoid losing setting changes (especially on Android) ( #14266 )
2024-01-23 21:33:27 +01:00
cx384
5958714309
Tool specific pointing and blocking pointable type ( #13992 )
2024-01-22 18:27:08 +01:00
Lars Mueller
fb461d21a5
Fix waypoint precision wraparound, add bounds check
2024-01-21 21:00:09 +01:00
grorp
404a063fdf
Touchscreen: Allow mods to swap the meaning of short and long taps (punch with single tap) ( #14087 )
...
This works through a new field "touch_interaction" in item definitions.
The two most important use cases are:
- Punching players/entities with short tap instead of long tap (enabled by default)
- Making items usable that require holding the place button (e.g. bows and shields in MC-like games)
2024-01-21 17:44:08 +01:00
sfan5
8cbd629010
Fix bugs in ModifySafeMap ( #14276 )
2024-01-20 15:37:30 +01:00
David Heidelberg
371b9a7fc2
Move check for strlcpy before config.h generation
...
Fixes: 225aa107f671 ("Define strlcpy only on platforms where it's not available")
2024-01-19 22:48:43 +01:00
sfan5
699d1bf27c
Use newer IrrlichtMt
...
now with SDL2
2024-01-19 11:54:40 +01:00
David Heidelberg
225aa107f6
Define strlcpy only on platforms where it's not available
...
Linux musl-libc and recent glibc > 2.38 have it.
Signed-off-by: David Heidelberg <david@ixit.cz>
2024-01-19 11:53:08 +01:00
DS
e416c99419
Fix signed overflow UB in PseudoRandom::next()
2024-01-19 11:52:53 +01:00
Lars
7c9706fdcf
Remove unused meshgen_block_cache_size setting
2024-01-19 11:52:39 +01:00
HybridDog
f08e4bb27d
Return to the main menu if a shader compilation fails ( #14256 )
...
Before this change, if the shaders are broken, only an error message is shown and the player enters the world nonetheless, where he/she sees broken graphics.
2024-01-19 11:51:46 +01:00
savilli
432988a4ad
Fix multiple password changes in one session
2024-01-19 11:50:55 +01:00
sfan5
e985b7a0bf
Initialize random with better seed
2024-01-17 20:06:26 +01:00
sfan5
6caa06eaed
Remove mistaken exec mode from three files
2024-01-17 20:06:26 +01:00
sfan5
5ceb327e55
Replace SHA256 implementation with one from LibreSSL
...
They have cleaner code than OpenSSL :)
from here: https://github.com/libressl/openbsd/tree/master/src/lib/libcrypto
and https://github.com/libressl/portable
2024-01-17 20:06:26 +01:00
sfan5
b0f76d82c5
Remove references to SHA1 and SHA512 from SRP code
2024-01-17 20:06:26 +01:00
sfan5
5756d6262e
Minor improvements and fixes in httpfetch.cpp
2024-01-17 20:06:11 +01:00
sfan5
56943bef48
Use modern libcurl poll/wait methods
2024-01-17 20:06:11 +01:00
sfan5
ee727eb65e
Migrate UDPSocket to use poll()
2024-01-17 20:06:11 +01:00
sfan5
e8008c1b21
Sanitize lang_code and full_version received from client
...
fixes #14262
2024-01-17 20:05:57 +01:00
sfan5
bdc124ba41
Require client to consistently use peer ID
2024-01-17 20:05:57 +01:00
sfan5
f27f701251
Make server disconnect lingering clients
2024-01-17 20:05:57 +01:00
sfan5
b2f0a37b18
Rate-limit client connection attempts
2024-01-17 20:05:57 +01:00
sfan5
050152eb90
Do not allocate packet quota to half-open connections
2024-01-17 20:05:57 +01:00
sfan5
3987318f09
Time out when reliables can't be delivered
...
If one of the channels stalls for whatever reason we can't pretend the connection is fine.
2024-01-17 20:05:57 +01:00
sfan5
9f684eac92
Remove weird command procession limit
...
it was set to 1 too, wtf?!
2024-01-17 20:05:57 +01:00
sfan5
abf3142b26
Send initial dummy packet as empty
...
No functional change and no compatibility implicatons
but this better matches what is documented everywhere.
2024-01-17 20:05:57 +01:00
sfan5
eeb873b23c
Minor code corrections
2024-01-17 20:05:57 +01:00
sfan5
84d4647329
Scale resend timeout exponentially
2024-01-17 20:05:57 +01:00
sfan5
7acb14f7a1
Use fixed, lower timeout for half-open connections
2024-01-17 20:05:57 +01:00
sfan5
2587302987
Assign peer IDs randomly
2024-01-17 20:05:57 +01:00
sfan5
db88d24ff8
Track connection half-open state
2024-01-17 20:05:57 +01:00
cx384
2ea8d9ca11
Fix out of range enum casts in deSerialize functions ( #14090 )
2024-01-17 20:05:46 +01:00
sfan5
0383c44f0d
Custom data structure for active objects to get performance *and* safety ( #13880 )
2024-01-17 20:04:56 +01:00
Wuzzy
08ee6d8d4b
Add rotation support for wallmounted nodes in 'ceiling' or 'floor' mode ( #11073 )
2024-01-17 17:47:06 +01:00
sfence
ceaa7e2fb0
Add API for restoring PseudoRandom and PcgRandom state ( #14123 )
2024-01-16 23:20:52 +01:00
Vitaliy
8093044f07
Support OpenGL 3 ( #13321 )
2024-01-16 21:09:18 +01:00
cx384
92c55c27cf
Add function to get all HUD elements ( #14042 )
2024-01-14 17:46:29 +01:00
SmallJoker
ed7d4037b2
Client: fix possible division by zero in [crack modifier
2024-01-14 16:28:03 +01:00
sfan5
1ba26d67bd
Remove excessive includes from porting.h
2024-01-14 13:17:53 +01:00
sfan5
e824e9023f
Simplify LuaPseudoRandom::l_next and fix docs
...
Also extends the allowed range on the C++ side. This has no side-effects.
2024-01-14 13:17:53 +01:00
sfan5
d20f1182f2
Fix Lua PseudoRandom seeds being mangled
...
closes #14237
2024-01-14 13:17:53 +01:00
sfan5
e83530d40b
Use explicit types on PseudoRandom implementation
2024-01-14 13:17:53 +01:00
sfan5
6f494a968d
Move setenv compat code to porting.h
2024-01-14 13:17:53 +01:00
sfan5
133f706bf3
Make unittests less reliant on files in the source distribution
2024-01-14 13:17:53 +01:00
sfan5
863c9b55b4
Remove broken MINETEST_SUBGAME_PATH test
...
The path being tested for is in the default search path for games,
so it would still pass if the env var was not working.
2024-01-14 13:17:53 +01:00
sfan5
45561b89a4
Make sure unittests don't try to write to cwd
2024-01-14 13:17:53 +01:00
grorp
b12be0498e
Don't enable relative mouse mode if in touchscreen mode ( #14118 )
2024-01-13 20:01:10 +01:00
lhofhansl
59abf1bb42
Allow active blocks to be generated ( #14185 )
2024-01-13 10:27:41 -08:00
lhofhansl
518ecd7f4e
Slight optimizations in ClientMap ( #14251 )
2024-01-12 16:53:08 -08:00
HybridDog
345e93d19c
Code style: Use non-static member initialisation instead of member initialiser lists for shader uniform names
...
Before this change,
the member type and member name are at one place,
and the member name and uniform name are at another place.
If the uniform name is written directly at the member declaration,
the member type, member name and uniform name are all at one place,
which leads to shorter code and may be easier to read.
2024-01-11 20:04:42 +01:00
SmallJoker
a7eaee77ca
ContentCAO: Fix threshold of alpha channel textures ( #14213 )
...
With disabled shaders, the material EMT_TRANSPARENT_ALPHA_CHANNEL uses the
parameter as an alpha threshold to decide whether to draw the texture.
Thus lowering this limit fixes the issue of vanishing textures below alpha 128.
2024-01-10 19:34:52 +01:00
Muhammad Rifqi Priyo Susanto
0d41996562
MSVC: Fix locale workaround code
2024-01-10 19:33:04 +01:00
lhofhansl
4bf95703a0
Allow access into MapSector::m_blocks ( #14232 )
...
* New API to allow access into MapSector::m_blocks
* Use this API on ClientMap::touchMapBlocks(), ClientMap::updateDrawList(), and ClientMap::updateDrawListShadow() to speed them up
2024-01-10 09:17:26 -08:00
cx384
2766c70ad3
Fix dividing by zero crashes in texture modifiers
2024-01-07 21:49:26 +01:00
sfan5
2c390b5473
Rework client connecting and enable fallback address use
2024-01-07 21:49:05 +01:00
sfan5
20692d54de
Some minor cleanups for UDPSocket class
2024-01-07 21:49:05 +01:00
sfan5
dc7fb26921
Extend capabilities of Address class
2024-01-07 21:49:05 +01:00
Muhammad Rifqi Priyo Susanto
171f911237
Android: Add selection dialog (drop down/combo box) ( #13814 )
...
- The handling of IGUIComboBox uses the new setAndSendSelected() method.
- getDialogState() is now getInputDialogState() and returns the state of the input dialog.
- getLastDialogType() is added and returns current/last shown dialog's type.
- getInputDialogState() now returns an enum instead of int.
- getAndroidUIInput() now returns void instead of bool.
- New data types (enum) are added:
(1) GameActivity.DialogType (Java) and porting::AndroidDialogType (C++)
(2) GameActivity.DialogState (Java) and porting::AndroidDialogState (C++)
- When showing a text input dialog, there is no custom accept button text any more.
- showDialog()/showDialogUI() for text input is now showTextInputDialog()/showTextInputDialogUI().
- showInputDialog()/showDialogUI() for text input is now showTextInputDialog()/showTextInputDialogUI().
- getDialogValue()/getInputDialogValue() is now getDialogMessage()/getInputDialogMessage().
Co-authored-by: Gregor Parzefall <82708541+grorp@users.noreply.github.com>
2024-01-07 19:00:04 +07:00
lhofhansl
bd42cc2c77
Ensure deterministic client occlusion culling and minor improvements ( #14212 )
...
* Ensure deterministic client occlusion culling
* Increase culling optimize distance slightly
* More accurate culling when sampling
2024-01-06 18:43:46 -08:00
sfan5
8db4ba9e58
Fix some console window behavior on Windows
2024-01-06 15:38:09 +01:00
sfan5
7c7ae79f9f
Fix native thread handle usage on win32
2024-01-06 15:38:09 +01:00
sfan5
8674dc831d
Avoid unused argument spam with MinGW-clang
2024-01-06 15:38:09 +01:00
sfan5
3fbe42c3a2
Add unittest to check thread_local destructor brokenness
2024-01-06 15:38:09 +01:00
sfan5
6550bc252f
Fix logic in porting::attachOrCreateConsole()
...
No functional change but now the comment is actually correct.
2024-01-06 15:38:09 +01:00
Zughy
c2c8d4d410
Remove controls listed in the pause menu (no touchscreen) ( #13282 )
2024-01-05 20:10:07 +00:00
Maintainer_
34ce86a8f5
Fix GameUI text staying visible during shutdown. ( #14197 )
2024-01-05 00:39:56 +01:00
grorp
05a53cd330
Touchscreen: Recognize double-taps as double-clicks ( #14187 )
2024-01-05 00:39:40 +01:00
Muhammad Rifqi Priyo Susanto
e17455cb22
Remove server's address and port from pause menu ( #14082 )
2024-01-05 00:39:11 +01:00
grorp
995c192874
Don't apply gui_scaling & DPI twice to table[] / textlist[] scrollbar ( #14206 )
2024-01-03 21:58:58 +01:00
DS
c9cd0d20ef
Use AL_SOFT_direct_channels_remix extension for non-positional stereo sounds ( #14195 )
2024-01-03 21:57:00 +01:00
DS
3eab5e9002
Replace clientmap's MeshBufListList with a hashmap
2024-01-03 21:56:38 +01:00
Lars Müller
2c44620e5e
Comply with base64 license terms ( #14199 )
2024-01-01 22:49:12 +01:00
sfence
d0753dddb1
Method add_pos for object/player ( #14126 )
2024-01-01 22:48:56 +01:00
Alfred Wingate
c9ab61aa8c
Add missing header for gcc-14
...
https://gcc.gnu.org/gcc-14/porting_to.html
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-12-31 19:26:33 +01:00
sfan5
431444ba9f
Extend sanity checks in ActiveBlockList::update
...
also fixes the space indentation
2023-12-30 00:31:03 +01:00
lhofhansl
c99196d363
Do not emerge blocks in the active_object_send_range_blocks range ( #14152 )
...
The active object range is about active objects (not blocks). Activate blocks (and hence any object "in" them) in the cone define by the active object range (and fov) when they are loaded (i.e. visible), otherwise ignore them.
2023-12-29 14:18:06 -08:00
lhofhansl
22a1653702
Perform server occlusion check before a block is loaded or generated ( #14148 )
2023-12-29 21:53:27 +01:00
sfan5
edd947b645
Enable some runtime hardening on win32
2023-12-29 21:52:08 +01:00
sfan5
b8dc349099
Clean up gettext initialization
2023-12-29 21:52:08 +01:00
sfan5
93c2aff2cf
Clean up OS-specific initialization
2023-12-29 21:52:08 +01:00
Desour
ad5e9aa5e3
Fix AsyncRunStep() skipping steps when dtime < 1 ms
2023-12-29 21:51:19 +01:00
cx384
467d3a8c62
Rename hud_elem_type
to type
( #14065 )
2023-12-29 21:51:02 +01:00
lhofhansl
bc336480e6
Avoid short overflow with large viewing ranges ( #14175 )
2023-12-28 09:10:11 -08:00
grorp
32e492837c
Support both mouse and touch input in GUIs in a single binary ( #14146 )
2023-12-27 22:37:36 +01:00
superfloh247
4f1dbb127a
Update CMakeLists.txt to fix MacOS build ( #14160 )
...
Co-authored-by: sfan5 <sfan5@live.de>
2023-12-27 22:19:56 +01:00
sfan5
93dfa8a6d8
Optimize and improve built-in PNG writer ( #14020 )
2023-12-27 11:56:48 +01:00
Gregor Parzefall
335af393f0
Make the loading screen progress bar respect "gui_scaling"
2023-12-26 20:21:15 +01:00
sfan5
5405a558fd
Fix minor issue with log_deprecated()
2023-12-25 19:47:34 +01:00
sfan5
961652c2e9
Address some clang-tidy warnings
2023-12-25 10:07:28 +01:00
Desour
322c4a5b2b
Rework server stepping and dtime calculation
2023-12-25 10:07:03 +01:00
Desour
b6c7c5a7ab
Link with -latomic
2023-12-25 10:07:03 +01:00
grorp
46c930cf70
Touchscreen: Make server-sent overrides of button textures work ( #14145 )
2023-12-23 14:39:42 +01:00
Lars
e0d4a9d575
Make volumetric light effect strength server controllable
...
- Make volumetric light effect strength server controllable
- Separate volumetric and bloom shader pipeline
- Require bloom to be enable, scale godrays with bloom
2023-12-21 16:21:01 -08:00
x2048
04f0d545da
Initial implementation of 'Godrays'
2023-12-21 16:21:01 -08:00
Lars Müller
cad8e895f2
Fix set_bone_position regression (error on passing none)
2023-12-21 18:55:12 +01:00
Warr1024
7e143cb33d
Manually configurable minimum protocol version ( #14054 )
...
Partially address #13483 . Server operators can set a minimum
protocol version to match the game requirements (or any other
restriction they may want), and it's applied as an additional
constraint on top of the baseline compatibility range, optional
strict_protocol_version_checking, and any kick-on-join used by
the game/mods.
2023-12-21 18:53:30 +01:00
Gregor Parzefall
04dc4a10f0
Fix TouchScreenGUI ignoring server-sent pitch changes
2023-12-20 21:24:10 +01:00
Gregor Parzefall
3b346fd3c9
Fix touch input on Linux
...
The code relied on touch IDs being consecutive. This is true on Android, but not on Linux.
Therefore, touch input on Linux was broken since 53886dcdb52de80d862539e22950c84fbf88df88.
2023-12-20 21:22:15 +01:00
Lars Müller
0d61598d8a
Extend bone override capabilities ( #12388 )
2023-12-20 21:21:53 +01:00
sfan5
61d0f613df
Hand roll UTF-16 conversion in CGUITTFont ( #14121 )
2023-12-19 20:18:43 +01:00
grorp
00d9d96e48
Android: Pause rendering while the app is paused ( #14058 )
2023-12-19 20:18:28 +01:00
HybridDog
b1aec1b5c8
Add dithering ( #9014 )
2023-12-19 20:18:11 +01:00
grorp
91ba02449b
Add touch_controls
boolean to get_player_window_information()
( #14092 )
2023-12-17 20:47:07 +01:00
JosiahWI
7162b536eb
Extract Game::drawScene from Game::updateFrame
2023-12-17 20:44:45 +01:00
lhofhansl
ca1a723890
Allow cheaper culling checks at a distance ( #14073 )
...
* Allow cheaper culling checks at a distance
* Pick a random ray, so that far missing block will eventually be shown
2023-12-16 15:04:21 -08:00
superfloh247
16c22477c2
Update porting.h to fix build errors on macOS 14 / Xcode 15
2023-12-16 12:52:07 +01:00
sfan5
128ed87dd8
Reorder members of MapBlock for performance
...
Before and after as obtained via `pahole -C MapBlock bin/minetest`:
/* size: 336, cachelines: 6, members: 23 */
/* sum members: 329, holes: 4, sum holes: 7 */
vs.
/* size: 336, cachelines: 6, members: 23 */
/* sum members: 329, holes: 2, sum holes: 7 */
There is not much to be gained by packing but I made sure
to move the most important data (mainly for the client) into
the first cache line.
2023-12-16 12:51:42 +01:00
sfan5
9408a1a025
Reduce size of some MapBlock members
...
Also adds assertions to catch refcounting errors (on a debug build).
2023-12-16 12:51:42 +01:00
sfan5
777dca7043
Elide MapBlock::contents_cached
2023-12-16 12:51:42 +01:00
sfan5
f5b35a074f
Get rid of parent pointer in MapBlock
2023-12-16 12:51:42 +01:00
sfan5
c6cf90f67b
Change MapBlock content cache to a vector
2023-12-16 12:51:42 +01:00
sfan5
cb6e3ac6e1
Allocate data seperately from MapBlock class again
...
This effectively reverts commit b3503e7853a52a8c16431f6b983e30c9d25951bc.
2023-12-16 12:51:42 +01:00
sfan5
2c2bc4a427
Try to benchmark common MapBlock usage
2023-12-16 12:51:42 +01:00
sfan5
e5a6048eec
Allow running individual benchmarks
...
mirrors and reuses the option from 2f6a9d12f1db84322e0b69fd5ddc986f1f143606
2023-12-16 12:51:42 +01:00
Gregor Parzefall
3c60d359ed
Remove usage of removed "PP" macro
...
This fixes a compilation error introduced by e7be135.
2023-12-15 10:28:07 +01:00
SmallJoker
94a54375e2
Inventory: prevent item loss when stacking oversized ItemStacks ( #14072 )
2023-12-15 10:24:04 +01:00
sfan5
a292cc42aa
Fix Windows architecture reporting in sysinfo
2023-12-15 10:23:52 +01:00
Gary Miguel
da832a295e
Delete clang-format files and comments ( #14079 )
2023-12-15 10:23:44 +01:00
Vitaliy
64b59184d1
Reduce test framework macrosity
2023-12-15 10:23:32 +01:00
sfan5
bd06466d3a
Improve clock_gettime usage
...
- correctly use value of _POSIX_MONOTONIC_CLOCK
- drop special path for macOS: it supports clock_gettime since macOS 10.12
2023-12-15 10:23:19 +01:00
sfan5
d4123a387c
Clean up porting.h a bit
2023-12-15 10:23:19 +01:00
mazes-80
e7be135b78
Warning: inform about entity name when bug detected about attachement ( #13354 )
2023-12-15 10:22:58 +01:00
sfan5
d1a55e9ca4
Remove use_texture_alpha compatibility code for nodeboxes & meshes ( #13929 )
2023-12-13 13:15:59 +01:00
Gary Miguel
6eb9269741
Try to fix safeWriteToFile producing empty files on Windows ( #14085 )
...
Use win32 APIs to write the temporary file before copying to the final
destination. Because we've observed the final file being empty, we
suspect that std::ostream::flush is not flushing.
Also add a test for it.
2023-12-13 13:15:37 +01:00
lhofhansl
a98200bb4c
Avoid movement jitter ( #13093 )
...
This allows the client and server to agree on the position of objects and attached players even when there is lag.
2023-12-10 19:12:37 +01:00
Muhammad Rifqi Priyo Susanto
55fafb7d25
Add sound volume when unfocused setting ( #14083 )
...
This adds a new setting to set sound volume multiplier when Minetest window is unfocused/inactive (sound_volume_unfocused, located in Settings > Graphics and Audio > Audio > Volume when unfocused).
If the window is not focused, the sound volume will be multiplied by sound_volume_unfocused setting. The sound volume will be set back to sound_volume again when the window is focused.
2023-12-10 19:11:39 +01:00
SmallJoker
321bcf5c44
GUIFormspecMenu: Fix race condition between quit event and cleanup in Game ( #14010 )
...
To not instantly free GUIFormSpec upon close/quit, Game periodically
cleans up the remaining instance on the next frame.
When a new formspec is received and processed after closing the previous formspec
but before the cleanup in Game, the formspec would be closed regardless.
This now re-creates the formspec when the old one is already pending for removal.
2023-12-10 19:09:51 +01:00
ZenonSeth
2ec3325381
Check if liquid can flow into empty node before picking it as source ( #14057 )
2023-12-08 21:13:18 +01:00
updatepo.sh
bae9f65411
Update from builtin/settingtypes.txt
2023-12-03 18:47:50 +01:00
Desour
bf53e7e1ca
Fix anticheat false positives whith speed physics override
2023-12-03 12:23:17 +01:00
Muhammad Rifqi Priyo Susanto
047520d91e
Inventory: Add remaining items into the source slot directly ( #14021 )
...
Remaining items are added into the source slot directly when left-dragging over the source slot.
2023-12-03 15:00:07 +07:00
DS
6106e4e72b
Fix sound and particlespawner id generation ( #14059 )
...
* Fix server sound ids being reused to early
* Fix particlespawner id generation
It always returned 0.
Also, now the ids always grow, to make a conflict with ids in lua unlikely.
2023-12-01 00:09:53 +01:00
SmallJoker
a7e5456099
Server: avoid re-use of recent ParticleSpawner and Sound IDs ( #14045 )
...
This improves the reliability when removing and re-adding handles quickly.
Looping through the entire ID range avoids collisions caused by any race condition.
2023-11-29 21:10:19 +01:00
sfan5
d6a8b546e4
Enable clean transparent filter in more cases
...
It was determined that this fixes scaling artifacts that can happen with bilinear,
trilinear or anisotropic filtering alone.
Since the previous commit did not bring back the relevant setting, we fix this
shortcoming by just enabling it in all cases where it is known to help.
2023-11-29 21:09:21 +01:00
sfan5
7f9326805c
Return texture filter settings to previous state
...
This partially reverts commit 72ef90885d5030bf6f7f9dd60a475339bde9a929.
fixes #14007
2023-11-29 21:09:21 +01:00
Muhammad Rifqi Priyo Susanto
53886dcdb5
Formspec: Pass the second-touch event as is ( #13872 )
...
The second-touch event is passed to the GUIFormSpecMenu::OnEvent() function as a touch event.
There are two types of event for inventory formspec: (1) mouse event and (2) touch event.
The touch event is just a modifier of the mouse event.
Co-authored-by: Gregor Parzefall <82708541+grorp@users.noreply.github.com>
2023-11-28 07:00:07 +07:00
grorp
771da80bbb
Make it possible again to see item tooltips on Android ( #14029 )
...
This change is a quick fix so that item tooltips show again on Android.
2023-11-25 17:07:07 +01:00
grorp
4255ac3022
Mainmenu: Avoid the header being displayed behind the formspec ( #13924 )
...
This change keeps the current header placement code, but adds additional code to make sure the header doesn't end up behind the formspec.
2023-11-25 17:04:33 +01:00
Desour
585e6aa80b
Clamp values in read_ARGB8
2023-11-19 20:45:18 +01:00
Desour
1bc74b0ba1
Fix undefined inf to s32 cast in GUIScrollBar::setPos
2023-11-19 20:45:18 +01:00
Desour
73e85b2ebb
Fix cached wanted_range and camera_fov being written with out-of-range value
2023-11-19 20:45:18 +01:00
Muhammad Rifqi Priyo Susanto
aa912e90a7
Make text containers wider in the Volume Change dialog ( #13995 )
...
These containers are widened to account for translations.
2023-11-15 07:00:03 +07:00
superfloh247
7cb20dd6c2
Fix undefined behaviour in modulo360f ( #13976 )
...
Resolves a crash on macOS/arm64 by no longer depending on UB.
2023-11-12 20:08:33 +01:00
updatepo.sh
8abb5796ed
Update example conf and settings translations
2023-11-11 12:09:35 +01:00
JosiahWI
56902745c8
Extract updateClouds method from updateFrame ( #13939 )
...
Co-authored-by: Gregor Parzefall <82708541+grorp@users.noreply.github.com>
2023-11-08 07:00:59 +07:00
corpserot
9e952603b2
Lump MT_LOGCOLOR env together with other color env ( #13887 )
2023-11-08 07:00:36 +07:00
Muhammad Rifqi Priyo Susanto
7213ff7a00
Resolves some warnings for Android version ( #13862 )
2023-11-05 19:02:01 +01:00
Nils Dagsson Moskopp
2025dcffbd
Revert "Don't trigger a key event if a key with the same associated char was pressed ( #13773 )"
...
This partially reverts commit d57c936b080f404df0b544561242b0c45c57f04d.
The reverted commit prevented recognition of key combinations.
It correctly changed a test case to no longer use “KEY_NUMPAD_5”.
Several keyboard layouts use a key combination to input a “+” (e.g. Neo2);
therefore some users could no longer input “+” to increase the view range.
Co-authored-by: savilli <78875209+savilli@users.noreply.github.com>
2023-10-30 21:23:59 +01:00
Desour
ec7a1f02e7
Fix out-of-bounds access in NodeDefManager::nodeboxConnects
2023-10-30 21:23:47 +01:00
Desour
1d31533601
Reformat rot array in NodeDefManager::nodeboxConnects, to make it less magic
2023-10-30 21:23:47 +01:00
Gregor Parzefall
96197025b9
Fix hypertext[] sometimes calculating incorrect scrollbar height ( #13943 )
2023-10-29 17:54:31 +01:00
Muhammad Rifqi Priyo Susanto
1363059416
Fix issues in Minetest's English texts ( #13913 )
...
Co-authored-by: Gregor Parzefall <82708541+grorp@users.noreply.github.com>
Co-authored-by: rubenwardy <rw@rubenwardy.com>
Co-authored-by: Desour <ds.desour@proton.me>
Co-authored-by: sfan5 <sfan5@live.de>
2023-10-29 12:24:39 +01:00
Desour
b3988d964a
Sounds: Do not fade paused sounds
2023-10-29 00:40:07 +02:00
Desour
2ad17136dc
Sounds: Fix dtime being in milliseconds
2023-10-29 00:40:07 +02:00
Desour
b2aa5d9261
Sounds: Don't pause new sounds when paused
2023-10-29 00:39:38 +02:00
rubenwardy
4ee32c5441
Add package update detection on Content tab ( #13807 )
2023-10-28 17:33:44 +01:00
Desour
454eb3901d
Inventory: Fix deleted inventory being used for regaining locked lists
2023-10-27 18:47:07 +02:00
Desour
a464b41d99
Inventory: Release resizes-locked lists on all on_
-callbacks
2023-10-27 18:47:07 +02:00
ROllerozxa
1a562ca144
Prevent Windows Defender warnings in singleplayer (Bind singleplayer server to 127.0.0.1)
2023-10-27 12:03:43 +02:00
sfan5
03ba9370b9
Deprecate .bmp format
2023-10-27 11:05:27 +02:00
Nils Dagsson Moskopp
2f16227302
Set color of scrollbar/dropdown button symbols and checkmarks to white
...
Before this patch, the symbols were rendered black on dark background.
Previous images were edited like this:
1. The colors were inverted with GIMP's “linear inversion” method.
2. Image files were optimized using “optipng -o7 -zm1-9 -strip all”.
Co-authored-by: ROllerozxa <rollerozxa@voxelmanip.se>
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2023-10-27 11:05:00 +02:00
SmallJoker
906417cc0d
GUI: Autofocus newly opened GUIModalMenu instances ( #13911 )
...
This in particular fixes incorrect event propagation to menus that
are no longer shown, such as the key change menu when opened within
the settings tab.
2023-10-22 15:31:42 +02:00
SmallJoker
2fbf5f4250
CSM: Fix duplicate player names ( #13910 )
2023-10-22 15:31:29 +02:00
DS
7e8831a414
Inventory: Don't throw resize lock exception in destructor ( #13894 )
...
... of nodemeta inventories.
2023-10-22 15:30:11 +02:00
Muhammad Rifqi Priyo Susanto
c9655e54ce
Change some keys to be triggered once every key press ( #13883 )
...
Those keys are below:
- KeyType::CAMERA_MODE
- KeyType::SCREENSHOT
- KeyType::TOGGLE_BLOCK_BOUNDS
- KeyType::TOGGLE_HUD
- KeyType::MINIMAP
- KeyType::TOGGLE_CHAT
- KeyType::TOGGLE_FOG
- KeyType::TOGGLE_DEBUG
- KeyType::TOGGLE_PROFILER
- KeyType::RANGESELECT
Co-authored-by: Gregor Parzefall <82708541+grorp@users.noreply.github.com>
2023-10-22 02:00:08 +07:00
updatepo.sh
72fc564758
Update example conf and settings translations
2023-10-20 23:12:43 +02:00
JosiahWI
62eb6cfed0
Extract updatePauseState from Game::run ( #13893 )
2023-10-18 20:17:30 +02:00
DS
6026003508
Warn only once about positional stereo sounds ( #13895 )
2023-10-18 20:16:45 +02:00
Gregor Parzefall
6fdc7e0dad
Make hypertext[] respect font size settings ( #13858 )
2023-10-16 20:47:16 +02:00
DS
3c41195986
Inventory: Fix picking up items via drop and pickup doubleclick ( #13891 )
2023-10-16 20:46:57 +02:00
DS
12e98678f6
Particle cleanup ( #13394 )
2023-10-11 17:07:30 +02:00
Muhammad Rifqi Priyo Susanto
7e678b5686
Prevent early respawns caused by up/down button in the death screen ( #13870 )
2023-10-09 17:13:33 +02:00
sfan5
b270c2bd68
Don't print ASCII art when using ncurses
2023-10-09 17:13:18 +02:00
DS
11ec75c2ad
ActiveObjectMgr fixes ( #13560 )
2023-10-09 17:13:04 +02:00
sfan5
01d26c0e0e
Warn when ignoring bind_address
2023-10-05 17:29:49 +02:00
sfan5
e02bf9fb1a
Log timeout when a httpfetch times out
2023-10-05 17:29:49 +02:00
sfan5
9ec40ce8e9
Enforce minimum for curl(_file_download)_timeout
2023-10-05 17:29:49 +02:00
Muhammad Rifqi Priyo Susanto
c60d971bc4
Move unsupported language list into a separate file ( #13865 )
2023-10-05 17:29:02 +02:00
DS
8db4381304
MapblockMeshGenerator: Use more verbose member names ( #13244 )
2023-10-04 00:28:43 +02:00
Gregor Parzefall
33cc29bbda
Allow setting custom third person front view camera offset ( #13686 )
...
Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2023-10-02 13:44:03 +02:00
Caleb Butler
3a4bf14c20
Replace all core::unicode::ustring with std::u32string ( #13775 )
2023-10-02 13:43:38 +02:00
Gregor Parzefall
56965bc814
Android: Add field_enter_after_edit[]
formspec element ( #13836 )
2023-10-01 11:20:50 +02:00
Desour
c90c545d33
Put the internal sound definitions into a new sound
namespace
2023-09-30 18:54:26 +02:00
Desour
bbc64a2eb5
Split sound_openal_internal into serval files
2023-09-30 18:54:26 +02:00
Desour
606215fae9
Move sound_openal and sound_openal_internal into new src/client/sound directory
2023-09-30 18:54:26 +02:00
Desour
8fa2ea71ef
Move soundmanager into its own thread
...
Fixes sound queues running empty on client step hiccups.
2023-09-26 22:10:57 +02:00
sfan5
b0d5cedeb6
Fix missing initialization for m_game_focused
2023-09-24 16:46:18 +02:00
sfan5
d113636a43
Fix UB in NetworkPacket class
2023-09-24 16:46:18 +02:00
sfan5
5109fa7eda
Fix crash when processing empty mesh buffers
2023-09-24 16:46:18 +02:00
Gregor Parzefall
ff87be6e5f
Remove unused "mNormal" uniform to fix crash on GLES2 with shaders
2023-09-24 16:46:05 +02:00
savilli
d57c936b08
Don't trigger a key event if a key with the same associated char was pressed ( #13773 )
2023-09-22 21:25:13 +02:00
sfan5
c3114132d3
Improve readability and infos in verbose log ( #13828 )
2023-09-22 18:41:10 +02:00
x2048
e36b2226b9
Skip face culling in shadows for double-sided materials (e.g. plantlike) ( #13500 )
...
* Skip face culling in shadows for double-sided materials (e.g. plantlike)
* Keep previous face culling for transparent surfaces e.g. water
2023-09-17 21:42:14 +02:00
ROllerozxa
a88e61c2cf
Improve UX when no game exists and drop default_game
( #13550 )
2023-09-17 18:45:28 +01:00
Wuzzy
8ebaf753d3
New physics overrides ( #11465 )
2023-09-15 20:10:08 +02:00
sfan5
2479d51cc6
Fix double-free of minimap textures
2023-09-13 15:27:07 +02:00
sfan5
033128d8dc
Show better description to users when std::bad_alloc happens
2023-09-13 13:58:59 +02:00
SmallJoker
4ef93fe25f
Allow place_param2 = 0 node placement predictions ( #13787 )
...
The placement prediction value 0 was accidentally ignored
and made the clients fall back to automatic rotation based
on the node paramtype2 value.
This now changes the internal representation to properly
indicate the disabled state (e.g. 'nil' in Lua).
2023-09-13 13:57:57 +02:00
Gregor Parzefall
833c324498
Make the crosshair DPI-aware ( #13772 )
2023-09-11 18:59:32 +02:00
Desour
010d08f6a4
Fix -Wmissing-braces warnings in mapblock_mesh.cpp
2023-09-09 18:48:56 +02:00
Desour
7897450b27
Fix -Winconsistent-missing-override warnings
2023-09-09 18:48:56 +02:00
Desour
2ad4c9e0ce
Fix -Wunused-but-set-variable warnings
2023-09-09 18:48:56 +02:00
Gregor Parzefall
95056f9783
Higher default graphics settings on Android ( #13780 )
2023-09-07 17:55:11 +02:00
chmodsayshello
294ad98776
Send ever lasting particle spawners to all players ( #13774 )
2023-09-02 22:58:11 +02:00
sfan5
f080aa29b5
Remove usage of obsolete HighPrecisionFPU field
2023-09-01 12:46:36 +02:00
Gregor Parzefall
7b56daa236
Small setting-related fixes ( #13755 )
2023-08-27 20:18:41 +02:00
SmallJoker
bf9f831cb2
Inventory: skip redundant stack movement
...
The list of dragged stacks includes the source stack, which
however does not need to be moved onto itself.
This is an optimization.
2023-08-27 20:12:10 +02:00
SmallJoker
0ba899e239
Inventory: Fix assertion caused by a no-op stack movement
2023-08-27 20:12:10 +02:00
Rising Leaf
660151572f
Do not render objects that are invisble into the shadow map
2023-08-26 20:12:17 +02:00
Desour
f47b00426a
Revert "Get rid of guiroot"
...
This reverts commit 45e7a800575f6d96ea307d99f1945aeb6c22a4e1.
2023-08-24 22:14:44 +02:00
Desour
7e4dccb3b5
Revert "Get rid of global guienv variable"
...
This reverts commit 16da954bd70b326f21cec9547237f55de18d4253.
2023-08-24 22:14:44 +02:00
Desour
f98726c516
Revert "Use our GUIButton in touchscreengui"
...
This reverts commit f7f3aaf43c88179bafd255f3c67275f316cff91a.
Fixes #13743 .
2023-08-24 22:14:44 +02:00
Gregor Parzefall
aea9242a96
Allow nodes to have their post_effect_color affected by lighting ( #13637 )
...
Co-authored-by: DS <ds.desour@proton.me>
2023-08-24 20:16:36 +02:00
Gregor Parzefall
92b6ff4721
TouchScreenGUI: Fix only 9 hotbar slots being usable ( #13698 )
...
Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
2023-08-24 17:45:51 +02:00
Gregor Parzefall
72ef90885d
Clean up texture filtering settings ( #13683 )
2023-08-24 10:50:47 +02:00
gamefreq0
d0ee63c766
Enable shift-click crafting ( #13729 )
2023-08-24 12:00:54 +07:00
sfan5
2c987b66c1
Move implementations of some LuaVoxelManip functions to l_mapgen
2023-08-14 18:16:36 +02:00
sfan5
e48f15c135
Skip liquid updates in MapgenSinglenode if not applicable
2023-08-14 18:16:36 +02:00
sfan5
bf36a90579
Optimize Mapgen::updateLiquid()
...
-55% runtime in singlenode usage, which is the best case
2023-08-14 18:16:36 +02:00
sfan5
f9c881eb5a
Add two missing classes to async environment
2023-08-14 18:16:36 +02:00
Desour
16da954bd7
Get rid of global guienv variable
...
(It can already be accessed via the renderingengine.)
2023-08-14 18:13:47 +02:00
Desour
45e7a80057
Get rid of guiroot
...
The guienvironment already provides a root gui element, we don't need to add another one.
(For CGUIEnvironment, the env itself is the root element.)
2023-08-14 18:13:47 +02:00
Desour
7e7aceb8c1
Replace all actual uses of irrlicht CGUIStaticText with our StaticText
2023-08-14 18:13:47 +02:00
Desour
d75c956dbc
Remove ugly hack in static_text.h
...
Just use the root element, like GUIButton:add().
2023-08-14 18:13:47 +02:00
Desour
f7f3aaf43c
Use our GUIButton in touchscreengui
2023-08-14 18:13:47 +02:00
Desour
91c0439922
Use our GUIButton in our GUIScrollBar
...
Note that GUIScrollBar needs an ISimpleTextureSource now due to button styling.
2023-08-14 18:13:47 +02:00
Desour
9d62abbe46
Replace any uses of CGUIScrollBar and IGUIScrollBar with GUIScrollBar
2023-08-14 18:13:47 +02:00
Desour
124d064015
GUIButton: Default BgColor to white, as opposed to unintialized
...
(Same as what CGUIButton uses (via colors=0).)
2023-08-14 18:13:47 +02:00
Desour
2903f692ba
GUIButton: Use default member initializers
2023-08-14 18:13:47 +02:00
Desour
7f9de5db0b
Make touchscreengui compile
2023-08-14 18:13:47 +02:00
rubenwardy
137e4ce866
Fix hypertext in the mainmenu ( #13731 )
2023-08-13 13:28:33 +01:00
rubenwardy
c6a0ead72d
Add warning for initial properties directly inside definition ( #9650 )
2023-08-13 00:19:03 +01:00
Zughy
98f097dc2f
Warn about unsupported file extensions for media
2023-08-06 14:16:00 +02:00
rubenwardy
752ce1a1b2
Settings GUI: Move shadow presets to Shaders, remove Most Used ( #13713 )
2023-08-05 17:33:18 +01:00
Joachim Stolberg
21ecdd5681
Fix textarea scrollbar inside border=false ( #13678 )
2023-07-30 14:54:52 +01:00
OgelGames
3f2a10bb4b
Fix decode_base64 returning nothing instead of nil ( #13697 )
2023-07-30 14:53:47 +01:00
Desour
e0192e256f
Fix incorrect rounding in GUIInventoryList::getItemIndexAtPos
2023-07-22 17:19:57 +02:00
ndren
53c594abe0
Introduce and start using microsecond sleep on Linux ( #13445 )
2023-07-22 17:19:49 +02:00
Gregor Parzefall
6f0d36c41a
Fixes and improvements
2023-07-20 22:15:47 +02:00
Gregor Parzefall
7473e4cafd
Expose all OpenGL filtering modes, use OpenGL names for them
...
Because of a review comment on the Irrlicht PR by numberZero.
2023-07-20 22:15:47 +02:00
Gregor Parzefall
6bf63d4b41
Rename SMaterial::TextureLayer -> SMaterial::TextureLayers
...
It's not the "texture layer" of the material, but an array of texture layers.
2023-07-20 22:15:47 +02:00
Gregor Parzefall
05ebe2418b
Rename E_MATERIAL_FLAG -> E_MATERIAL_PROP
...
The enum values don't reference material flags, but material properties.
2023-07-20 22:15:47 +02:00
Gregor Parzefall
9bef3c136a
Split up texture filtering properties of SMaterialLayer into MinFilter and MagFilter
...
You can now set the filter used when scaling textures down and the filter used when scaling textures up separately.
2023-07-20 22:15:47 +02:00
Gregor Parzefall
307e380f30
Refactor the way you set material properties
...
Instead of using SMaterial::setFlag, you now set them directly on SMaterial or SMaterialLayer.
2023-07-20 22:15:47 +02:00
SmallJoker
128d22e6ee
GUI: Automatic scaling of checkboxes and scrollbars ( #13666 )
...
Mainly helpful on high-DPI screens or when 'gui_scaling' is changed
2023-07-17 20:46:15 +02:00
Nekobit
50234b8e5c
Fix string conversion for FreeBSD ( #13648 )
2023-07-17 20:46:06 +02:00
Gregor Parzefall
3552537fc4
Fix that transparent text still draws a text shadow ( #13649 )
...
Makes fade out animations of text more pleasant to look at.
2023-07-17 20:45:56 +02:00
DS
f41e9e3e0f
Add Irrlicht device info to the mainmenu About tab ( #13636 )
2023-07-17 20:44:54 +02:00
archfan
9b310a6e6f
Decrease sneak margin to combat phasing through thin walls ( #13607 )
...
A 1/16th-node-thick wall is 0.625 meters thick, and the previous margin of 0.1 meters meant that these walls could be phased through by sneaking against them. A margin lower than 0.625 prevents this.
2023-07-17 20:44:33 +02:00
Muhammad Rifqi Priyo Susanto
2061984313
Simplifies code by using Irrlicht's operator overloads
...
New variables are added to replace in-place calculations.
2023-07-14 21:00:29 +07:00
Muhammad Rifqi Priyo Susanto
3a47559e86
Fix some memory leaks and code style issues
...
Maximum line length is 95 characters.
Some members' name are changed.
Struct initialisations use brace syntax; eliminating the usage of the memset function.
Iterations use for-each-loop instead of while-loop+iterator.
char * -> std::string
button_info * -> std::shared_ptr<button_info>
2023-07-14 21:00:29 +07:00
Desour
8e09077de8
Fix sound manager not being stepped by GUIEngine
2023-07-14 14:42:00 +02:00
Gregor Parzefall
1837a11c22
Improve messages when changing viewing range and exceeding server-set limit ( #13647 )
2023-07-14 14:41:45 +02:00
sfan5
bf987bf58a
Handle blit_back_with_light with empty area
...
fixes #13306
2023-07-13 20:42:39 +02:00
sfan5
4a14a18799
Fix mapgen_v6 crashing
...
this variable was accidentally shadowed in 20b10b569
2023-07-09 20:59:57 +02:00
lhofhansl
136a93f628
Reverse eye-offset Z-coordinate in 3rd person front view ( #13369 )
2023-07-08 12:00:15 +07:00
Gregor Parzefall
0218963f1b
Fix max_formspec_size not taking gui_scaling into account ( #13493 )
2023-07-07 21:42:43 +02:00
SmallJoker
078bd95a49
Formspec: prevent infinite loop caused by negative background9[] size ( #13624 )
2023-07-07 21:42:10 +02:00
lhofhansl
869df17ddf
Server enforcement for fog_distance ( #13448 ) to block cheating ( #13643 )
...
This enforces the fog_distance (if set) at the server, so that a hacked client could not cheat and retrieve blocks beyond the set distance.
2023-07-06 09:36:46 -07:00
Gregor Parzefall
26453df2f7
Don't crash if a Lua error occurs inside get_staticdata
2023-07-03 20:34:02 +02:00
ROllerozxa
d71872af23
Fix texture paths for system-installed builds
...
* window icon
* custom touchscreen checkbox sprites
2023-07-03 20:31:03 +02:00
Lars Müller
25ef8f3934
Fix local animations not resetting
...
Converts `LocalPlayerAnimation` to a scoped enum to prevent such bugs in the future
2023-07-02 12:47:18 +02:00
lhofhansl
0ade097e99
Allow the server to control fog_distance and fog_start via the sky-api ( #13448 )
2023-06-30 19:11:17 -07:00
numzero
dde8f0e20a
Replace a non-aligned cuboid with a cylinder in client::ActiveObjectMgr::getActiveSelectableObjects
2023-06-29 18:58:10 +02:00
numzero
21035bf5d4
Add unit test on client::ActiveObjectMgr::getActiveSelectableObjects
2023-06-29 18:58:10 +02:00
numzero
d7291e0600
Update client::ActiveObjectMgr::getActiveSelectableObjects API
2023-06-29 18:58:10 +02:00
x2048
c09a3a52ac
Add antialiasing filters (FXAA, SSAA) ( #13253 )
2023-06-28 05:30:08 +02:00
sfan5
442d5fc75c
Add unit tests for isBlockInSight()
2023-06-26 22:51:49 +02:00
numzero
3b74cc4a41
Replace PP with direct printing
2023-06-26 22:51:32 +02:00
numzero
de77fe8ade
Allow printing irr::core::vector[23]d directly to an std::ostream
2023-06-26 22:51:32 +02:00
Vitaliy
2f6a9d12f1
Allow running individual unit tests
2023-06-25 11:13:48 +02:00
Vitaliy
aada2403c9
Try all known video drivers if the requested one fails to initialize
2023-06-25 11:13:23 +02:00
Gregor Parzefall
7e51e2dea6
Fix compiler error on MSVC with ENABLE_TOUCH=TRUE
2023-06-24 20:37:59 +02:00
sfan5
84fb663d6c
Add VoxelArea::intersect()
2023-06-23 09:05:26 +02:00
sfan5
659828b142
Rename ModApiEnvMod and ModApiItemMod
...
The 'mod' could have meant module in the past but no other classes do this.
2023-06-23 09:05:26 +02:00
sfan5
610578e3e2
Use swapNode for set_node_level and add_node_level
...
While this is a behaviour change I don't think the old one made any sense.
It's possible that someone hit this before and wrote a workaround for it,
they won't be affected by this change.
It only makes things work that didn't before.
2023-06-23 09:05:26 +02:00
sfan5
62629939ff
Genericize find_node_near and find_node_in implementations in C++
2023-06-23 09:05:26 +02:00
sfan5
20b10b5691
Refactor EmergeParams owner
2023-06-23 09:05:26 +02:00
sfan5
32ff832108
Save Lua globals after mod loading
...
These are used for the async env currently and will be needed elsewhere soon.
2023-06-23 09:05:26 +02:00
sfan5
524d446757
Minor script api fixes/cleanups
2023-06-23 09:05:26 +02:00
wsor4035
5b6bc8a12b
Remove unsupported media formats from client.cpp
2023-06-22 17:52:48 +02:00
Gregor Parzefall
03ffc2618c
TouchScreenGUI: Add an exit / "ESC" button to the rare controls bar ( #13574 )
2023-06-22 17:50:36 +02:00
numzero
7c26cb1c35
Drop unused tile rotations
2023-06-22 17:50:20 +02:00
numzero
1102f92dac
Use a enum for tile rotation
2023-06-22 17:50:20 +02:00
numzero
729671d6ae
In getNodeTile, use a descriptive struct for the lookup table
2023-06-22 17:50:20 +02:00
numzero
d676520526
Optimize trigonometry out of MapblockMeshGenerator::drawCuboid
2023-06-22 17:50:20 +02:00
numzero
c29d897854
Optimize trigonometry out of MapblockMeshGenerator::drawLiquidTop
2023-06-22 17:50:09 +02:00
numzero
b8ddde0a96
Store liquid data as dimensionless fractions instead of BS multiplies
2023-06-22 17:50:09 +02:00
Desour
03dda13910
OpenALSoundManager: Fix a buffer overflow
2023-06-20 20:54:39 +02:00
lhofhansl
8f25f487fe
Instrument touchMapBlocks and block loading/deserialization. ( #13314 )
2023-06-19 16:59:08 -07:00
Vitaliy
f1feeb319c
Cull liquid back face on liquid-glasslike interface ( #13594 )
2023-06-18 13:52:14 -07:00
DS
edcbfa31c9
Sound refactor and improvements ( #12764 )
2023-06-16 20:15:21 +02:00
Wuzzy
6b3deaa170
Add disable_descend to disable active node sinking
2023-06-16 20:14:08 +02:00
Muhammad Rifqi Priyo Susanto
a4e69d6843
TouchScreenGUI: Read coordinates directly for virtual joystick ( #13567 )
...
The movement's direction and speed are calculated directly from the button's relative screen coordinate. The previous method was to trigger the movement using a keyboard event.
The only virtual joystick status left is Aux1 button.
---------
Co-authored-by: Gregor Parzefall <gregor.parzefall@posteo.de>
2023-06-16 22:40:16 +07:00
Desour
c549e84abb
Silence a -Wsign-compare warning for invlist indices
2023-06-15 13:55:20 +02:00
Desour
dade95e142
Fix curl deprecation warnings, and set minimum curl version to 7.56.0
2023-06-15 13:55:20 +02:00
Desour
f947e2afec
Fix some gcc -Wself-move warnings
2023-06-15 13:55:20 +02:00
Desour
6a05d63993
Use [[noreturn]]
2023-06-15 10:38:44 +02:00
Desour
5e6d144567
Enable -Wimplicit-fallthrough and use [[fallthrough]] attribute
2023-06-15 10:38:44 +02:00
Desour
9c348d057e
Replace the old STATIC_ASSERT macro with static_assert
2023-06-15 10:38:44 +02:00
Desour
8b108ed5f2
Use nicer syntax for nested namespace definitions
2023-06-15 10:38:44 +02:00
Desour
e700182f44
Replace Optional with std::optional
2023-06-15 10:38:44 +02:00
Desour
34ad551efc
Use MutexAutoLock for Thread::m_start_finished_mutex
2023-06-15 10:38:44 +02:00
Pascal Abresch
ba80d1ce1f
Implement check_offset for decorations
2023-06-15 10:36:46 +02:00
DS
c91182e1b3
Move the platform-dependent stuff in renderingengine.cpp to irrlicht ( #13348 )
2023-06-11 14:17:39 +02:00
DS
553dc02deb
Fix some memleaks from GUIButtonImage ( #13564 )
...
* `m_foreground_image` was grabbed, but not dropped in the destructor.
* `m_image` was created with new. It is grabbed by itself and by the env (not only by the env!, so it's an owning ptr). This owning ptr also was never dropped.
2023-06-06 19:01:32 +02:00
Desour
1b51ff333a
Use unique_ptr for ServerInventoryManager::DetachedInventory::inventory
2023-06-05 20:43:33 +02:00
Desour
1780d1bbde
Use unique_ptrs for MapSector::m_blocks
2023-06-05 20:43:33 +02:00
Desour
08ea467bfe
Use unique_ptr for g_httpfetch_thread
2023-06-05 20:43:33 +02:00
Desour
cfb1b879e0
Use unique_ptrs for CurlFetchThread::m_all_ongoing
2023-06-05 20:43:33 +02:00
Desour
d0bcdff5ce
Use unique_ptrs for leveldb db and iterators
2023-06-05 20:43:33 +02:00
Gregor Parzefall
a1463263b5
Auto-detect locale on Android ( #13561 )
2023-06-05 12:02:10 +02:00
Gregor Parzefall
a857c46e6e
Make the settings GUI more usable on Android ( #13543 )
2023-06-05 12:01:54 +02:00
Desour
d9f478cbfb
Remove a misleading MutexAutoLock in l_to_table
...
The temporary is immediately destructed, so the mutex isn't locked
after the line.
Removed the lock, because the Settings member-functions used by
push_settings_table lock the mutex and are thread-safe, but would
cause a dead-lock.
2023-06-05 12:01:08 +02:00
OgelGames
252c79d53a
Inventory mouse shortcut improvements ( #13146 )
...
Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
2023-06-05 12:00:32 +02:00
Riley Adams
29b7aea38b
Cavegen y biome check ( #13472 )
2023-06-05 11:59:22 +02:00
Muhammad Rifqi Priyo Susanto
7221de6ede
Option to invert direction or disable mouse wheel for hotbar item selection
...
More changed callbacks for the settings are added in readSettings(). Those are also deregistered when the Game object is destroyed.
2023-05-31 12:40:00 +07:00
Treer
8cd1296049
Add additional texture modifiers ( #10100 )
...
* Adjust hue, saturation, and lightness
* Colorize using hue, saturation, and lightness
* Adjust contrast & brightness
* Hard light
* Overlay
* Screen
* Create texture of a given size and color
2023-05-29 20:17:39 +01:00
lhofhansl
a8ec6092e2
Load blocks and objects behind player when in third-persion front-view ( #13431 )
2023-05-29 10:26:42 -07:00
Gregor Parzefall
fc3d6c1dd9
Place nodes with single tap on Android (+ bugfix) ( #13187 )
...
Don't place nodes when closing button bars.
Update docs (also in-game).
Rename "Default controls" -> "Controls" in Android pause menu since players can't change them (normally), so calling them "default" doesn't make sense.
2023-05-29 12:30:30 +07:00
lhofhansl
6832bf044e
Avoid jittering when player is attached ( #12439 )
...
* Avoid very jittering when player is attached.
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: Vitaliy <numzer0@yandex.ru>
2023-05-28 11:36:34 -07:00
sfan5
8cccd75e81
Android build via CMake ( #13528 )
...
* the thing
* the thing 2
2023-05-26 15:21:23 +02:00
Thresher
00c647e4cc
Convert spaces to tabs ( #13506 )
...
* Convert spaces to tabs
* Desour reviews 1-3 fix
* Desour fixes
* Undo alignment changes
2023-05-26 15:13:57 +02:00
ROllerozxa
f4cb16cc2d
Disable desynchronize_mapblock_texture_animation
by default ( #13514 )
2023-05-26 13:48:37 +02:00
Zughy
d6eb6ff973
Reset player lighting when passing no arguments ( #13525 )
...
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2023-05-26 13:47:16 +02:00
Zughy
b60d38b7f9
Reset day/night ratio even when passing no arguments ( #13524 )
...
* reset day_night_ratio when passing zero fields
* Update lua_api.md
---------
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2023-05-26 13:45:42 +02:00
Thresher
180ec92ef9
Remove trailing whitespace ( #13505 )
2023-05-18 20:34:18 +02:00
SmallJoker
95a9f4ab7c
Inventory: Allow InvRef:set_list with new_size >= old_size ( #13497 )
...
Fixes a regression introduced by enforced checks to work with
valid pointers within inventory actions.
2023-05-18 20:32:55 +02:00
Gregor Parzefall
f393214fef
Settings menu improvements regarding default values ( #13489 )
...
The reset button now removes the setting from minetest.conf instead of setting it to its default value.
The reset button is now shown whenever a value is present in minetest.conf
Float settings now get a .0 suffix if they have no decimal places.
2023-05-18 20:32:26 +02:00
savilli
5ba70cf5ef
Fix crash on handling wallmounted nodes with invalid param2 ( #13487 )
2023-05-18 20:31:04 +02:00
Zemtzov7
35112f2453
Disable vertical movement when both jump and sneak keys are pressed ( #13426 )
2023-05-18 20:30:21 +02:00
Gregor Parzefall
15fb4cab15
Fix Android segfault when game exits before TouchScreenGUI is initalized
2023-05-11 22:51:16 +02:00
sfan5
15445a0fbe
Raise and clean up _WIN32_WINNT constant
2023-05-11 22:51:01 +02:00
Wuzzy
80574cdbe8
Fix rotation of 4dir in schematic placement ( #13432 )
2023-05-11 22:50:52 +02:00
Buckaroo Banzai
65692ad1b5
Add min/max protocol version to minetest.get_version()
( #13482 )
2023-05-06 16:16:21 +01:00
DS
bec9c68bf3
Release invlist resizelock while doing the recursive callback in move_somewhere mode ( #13470 )
...
Fixes a crash in popular creative inventory mods that set the list when you put
something into trash.
2023-04-30 18:20:48 +02:00
lhofhansl
b35aa10579
Guarantee ActiveObjectMgr::m_active_object is not modified while iterating ( #13468 )
...
Currently if a mod creates new active objects in on_deactivate the server could crash.
2023-04-28 11:17:48 -07:00
Desour
7f6b09dce8
Use json forward-declarations
2023-04-27 18:50:33 +02:00
Desour
8b73743baa
Reduce number of recursively included headers
...
This should improve compilation speed.
Things changed:
* Prefer forward-declarations in headers.
* Move header-includes out of headers if possible.
* Move some functions definitions out of headers.
* Put some member variables into unique_ptrs (see Client).
2023-04-27 18:50:33 +02:00
Desour
e9e8eed360
GUIChatConsole: Use primary selection
2023-04-27 18:50:17 +02:00
Desour
062b4d036a
GUIEditBox: Use primary selection
2023-04-27 18:50:17 +02:00
SmallJoker
0fb6dbab36
InventoryManager: Disallow resizing or deleting inventory lists that are in use ( #13360 )
...
Naive solution to prevent InventoryList UAF and OOB ItemStack access caused by shrink/clear operations on InventoryLists within callbacks of an inventory action.
Co-authored-by: Desour <ds.desour@proton.me>
2023-04-22 17:42:36 +02:00
rubenwardy
4158b72971
Add ability to override item images using meta ( #12614 )
2023-04-17 19:44:41 +01:00
rubenwardy
b1786e88ac
Use .md extension for markdown files
...
Linking to line numbers is brittle, linking to sections/headings is better.
If you still want to link to a line number, you can append ?plain=1 to GitHub's URL
2023-04-16 20:23:53 +01:00
rubenwardy
5cd6a22dd3
Update settingtypes ( #13428 )
...
* Move settings to correct sections
* Improve titles and descriptions
* Make defaults in settingtypes.txt and defaultsettings.cpp match
Fixes #9002
2023-04-14 22:32:25 +01:00
Desour
ccd696c49a
Throw Hocroft-Karp onto shapeless recipes
2023-04-14 21:10:09 +02:00
Desour
50e91b882c
Add some simple unittests for shapeless recipes
...
Note: devtest also has craft unittests (see devtest/mods/unittests/crafting.lua),
but those aren't run at load-time.
2023-04-14 21:10:09 +02:00