1
0
mirror of https://github.com/minetest/minetest.git synced 2025-07-07 02:10:22 +02:00
Commit Graph

10913 Commits

Author SHA1 Message Date
03d86ea0b4 Add register dialog to separate login/register (#12185)
New users find Minetest's account system confusing.
This change moves username/password to a new dialog,
with login and register buttons added to the Join Game tab.

The old registration confirmation dialog is removed in
favour of the new dialog.

Fixes #8138
2022-06-05 17:47:38 +02:00
21323ef1ff Hide "Autosave Screen Size" on Android 2022-06-05 15:20:39 +02:00
1f39948bc3 Fix BSD iconv declaration 2022-06-05 15:20:29 +02:00
e82985c0a1 Document itemstrings with metadata 2022-06-05 15:20:13 +02:00
8e5bd82c4d fix integer overflow in mapgen (#11641)
* fix integer overflow in mapgen

Some calculations involving the magic seed had overflow because the result of an intermediate arithmetic step could not fit in an s32. By making the magic seed unsigned, the other operand in the equation will be cast to unsigned, and possibly other operands or intermediate operands. This will result in unexpected behavior if an operand is negative, which is technically possible, but logically should not happen.

* comment noise2d bitshift

While working through the code I was momentarily concerned that the right bitshift in noise2d could fill ones in some cases. It turns out that with signed integers, this is indeed true, but this one is shifting an unsigned integer, so the behavior is as expected. I put a comment here to clarify this, in case someone else wonders the same thing down the line.

* noise2d and noise3d unittests

I have added 3 tests each for noise2d and noise3d, testing all zero inputs, a very large seed (case which caused UB in the old implementation) and some fun primes I picked for no particular reason. This should be sufficient to demonstrate that the behavior of the new implementation has not changed. I used uniform initialization because it is a good feature of C++11. Please do not explode.

* uncomment the noise2d bitshift

This reverts commit 583b77ee9f. It's a
well-defined language semantic; it doesn't need to be commented.

* code cleanliness
2022-06-03 20:51:58 -04:00
575caa8015 Properly keep noclip state in Game and ClientMap 2022-06-03 21:48:52 +02:00
5f3af7d18b Remove obsolete eye_height related workaround
This was added a long time ago in 42bbd5c9ae
and meant to fix prevent the view becoming black when jumping into a
ceiling, this no longer happens today.
2022-06-03 21:48:52 +02:00
6a6b579c54 Add helper functions to make tool usable n times (#12047) 2022-06-03 21:47:04 +02:00
6d163b72dc Rework main menu confirmation dialogs (#12356) 2022-06-03 21:46:37 +02:00
b72932b445 Docs: remove unimplemented preserve field in crafting recipes 2022-06-03 21:46:26 +02:00
9fc018ded1 Fix use-after-free in node meta cleanup
bug introduced in 8908a91016
2022-05-29 16:30:13 +02:00
a9a207685a Reject registering node with empty name
fixes #10769
2022-05-29 14:00:19 +02:00
c1d03695d4 Minor code improvements around active block keeping 2022-05-29 14:00:19 +02:00
ea74680df4 Immediately activate blocks when a player joins
issue: #10884
This makes it possible for objects to immediately be activated,
but doesn't guarantee it since blocks may still need be emerged.
2022-05-29 14:00:19 +02:00
bb671c3089 Remove debug.get/setmetatable from security whitelist
fixes #12216
2022-05-29 14:00:19 +02:00
1b68fb7683 Don't allow banning in singleplayer
fixes #11819
2022-05-29 14:00:19 +02:00
303329f2d6 Handle lua entity HP changes correctly (like punches)
fixes #11975
2022-05-29 14:00:19 +02:00
85c824ed13 Make sure real disconnect reason isn't overwritten
bug introduced in 2f32044273
2022-05-29 14:00:19 +02:00
998e4820c9 Fix linking with Postgres libs on older cmake versions
closes #12149
2022-05-29 14:00:19 +02:00
5cd7b0c6e4 Remove remains of video mode querying 2022-05-29 14:00:19 +02:00
8908a91016 Get rid of node metadata when it becomes empty
fixes #8943
2022-05-29 14:00:19 +02:00
261a8db9dd Optimize Server::sendMetadataChanged a bit
The distance check also never worked as intended, now fixed.
2022-05-29 14:00:19 +02:00
f195db2d14 Add API function to invoke player respawn
closes #12272
2022-05-29 14:00:19 +02:00
da71e86633 Protect a few more settings from being set from mods
Of those settings main_menu_script has concrete security impact, the rest are added out of abundance of caution.
2022-05-29 14:00:19 +02:00
bccaf5fc2d Map opaque waving leaves to allfaces drawtype
fixes #9842
2022-05-29 14:00:19 +02:00
0c6a029413 Improve a translation string
fixes #11442
2022-05-29 14:00:19 +02:00
25ba9d848d Default settings, presets and configuration for dynamic shadows (#12359) 2022-05-29 13:58:57 +02:00
76000e676b Lua workflow: Use Leafo's Luarocks action
instead of installing outdated packages which lead to failing workflows
2022-05-28 11:31:56 +02:00
e8b2954586 Builtin: Optimize misc helpers (#12377)
Also add formspec_escape unit test
2022-05-27 21:40:38 +02:00
fe299e24d6 DevTest: Add nodes and items for testing overlays (#12304) 2022-05-27 21:39:36 +02:00
ef22c0206f Force-update shadows when the world is changed (#12364) 2022-05-26 22:28:34 +02:00
8b74257bf3 Reduce size of ContentFeatures structure
On my system this is a reduction from 4664 to 3704 bytes.
This is not for the sake of saving RAM but ensuring
commonly used structures fit into caches better.
2022-05-26 15:49:12 +02:00
9a01581cdd Get rid of global buffer that would ruin concurrent MapBlock serialization 2022-05-26 15:49:12 +02:00
5d26ac0088 Improve code in mapblock_mesh.cpp a bit 2022-05-26 15:49:12 +02:00
ed26ed5a1f Quantize light frustum calculations (#12357)
* Quantize light frustum calculations

Reduces shadow flicker

* Fix function name to match conventions
2022-05-23 23:45:18 +02:00
16a30556df Formally drop support for building with upstream Irrlicht
It stopped working with (at least) the last commit.
2022-05-23 22:50:58 +02:00
5daafc9d33 Fix hash implementation for SerializedBlockCache 2022-05-23 22:50:58 +02:00
e16a470d59 Use unordered_map instead of map for MapSectors 2022-05-23 22:50:49 +02:00
367a2d4b29 Add missing concurrency protection in logger (#12325) 2022-05-23 22:50:25 +02:00
0f9c78c3eb Fix no_texture.png for unknown nodes with ID < 125 (#12329) 2022-05-23 22:50:10 +02:00
c660218e43 Docs: clarify spawn_by for decorations 2022-05-23 22:49:48 +02:00
fa682270a9 Add missing comma in example in lua_api.txt (#12339) 2022-05-22 15:23:04 -04:00
ac5e8176b9 Add relative numbers for commands by prepending ~ (#9588)
* Add relative numbers for commands by prepending ~

* Some builtin code cleanup

* Disallow nan and inf in minetest.string_to_area

* Remove unused local variable teleportee (makes Luacheck happy)

* Clean up core.string_to_pos

* Make area parsing less permissive

* Rewrite tests as busted tests

* /time: Fix negative minutes not working

Co-authored-by: Lars Mueller <appgurulars@gmx.de>
2022-05-22 10:28:24 -04:00
9f338f5a56 Replace all uses of core::list with std::list (#12313) 2022-05-22 00:11:59 +02:00
2742fef458 Fixes needed to use irrArray backed by std::vector (#12263) 2022-05-22 00:11:49 +02:00
bc59fcf5c5 Bump IrrlichtMt version in CI 2022-05-22 00:11:22 +02:00
2f32044273 Don't ignore server disconnects in client code
If the server stops talking to us without saying bye we
should actually end the in-game session with an error message.
2022-05-21 17:49:55 +02:00
371f21fb35 Fixes to Android build + option to turn LuaJIT on/off for testing purposes (#12334) 2022-05-21 17:49:41 +02:00
8edc0fae5f Make no_screenshot image more clear (#12346) 2022-05-21 17:48:28 +02:00
e1f707d7e1 Patch built-in Lua to fix miscompile on Android (#12347) 2022-05-21 17:46:50 +02:00