aboutsummaryrefslogtreecommitdiff
path: root/lib (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-06-05Fix BSD iconv declarationsavilli1-14/+0
2022-06-05Document itemstrings with metadataLars Mueller1-3/+29
2022-06-03fix integer overflow in mapgen (#11641)JosiahWI3-2/+58
* 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 583b77ee9f1ad6bb77340ebb5ba51eb9a88ff51c. It's a well-defined language semantic; it doesn't need to be commented. * code cleanliness
2022-06-03Properly keep noclip state in Game and ClientMapsfan53-17/+23
2022-06-03Remove obsolete eye_height related workaroundsfan52-23/+1
This was added a long time ago in 42bbd5c9ae06a8d8ffb7915599097ead6f848755 and meant to fix prevent the view becoming black when jumping into a ceiling, this no longer happens today.
2022-06-03Add helper functions to make tool usable n times (#12047)Wuzzy7-3/+60
2022-06-03Rework main menu confirmation dialogs (#12356)ROllerozxa4-23/+20
2022-06-03Docs: remove unimplemented `preserve` field in crafting recipesZughy1-1/+0
2022-05-29Fix use-after-free in node meta cleanupsfan51-1/+3
bug introduced in 8908a9101608d3343023b470743ef63f1c44b0b7
2022-05-29Reject registering node with empty namesfan51-0/+3
fixes #10769
2022-05-29Minor code improvements around active block keepingsfan52-9/+17
2022-05-29Immediately activate blocks when a player joinssfan52-2/+9
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-29Remove debug.get/setmetatable from security whiteliststefan1-2/+0
fixes #12216
2022-05-29Don't allow banning in singleplayersfan51-0/+3
fixes #11819
2022-05-29Handle lua entity HP changes correctly (like punches)sfan52-10/+21
fixes #11975
2022-05-29Make sure real disconnect reason isn't overwrittensfan51-1/+1
bug introduced in 2f32044273d107e82fb1c35d4a0f616fa480cdf0
2022-05-29Fix linking with Postgres libs on older cmake versionssfan51-0/+1
closes #12149
2022-05-29Remove remains of video mode queryingsfan53-18/+0
2022-05-29Get rid of node metadata when it becomes emptysfan53-7/+32
fixes #8943
2022-05-29Optimize Server::sendMetadataChanged a bitsfan52-20/+21
The distance check also never worked as intended, now fixed.
2022-05-29Add API function to invoke player respawnsfan55-3/+27
closes #12272
2022-05-29Protect a few more settings from being set from modssfan51-4/+17
Of those settings main_menu_script has concrete security impact, the rest are added out of abundance of caution.
2022-05-29Map opaque waving leaves to allfaces drawtypesfan51-2/+9
fixes #9842
2022-05-29Improve a translation stringsfan51-4/+2
fixes #11442
2022-05-29Default settings, presets and configuration for dynamic shadows (#12359)x20481-8/+9
2022-05-28Lua workflow: Use Leafo's Luarocks actionLars Müller1-3/+4
instead of installing outdated packages which lead to failing workflows
2022-05-27Builtin: Optimize misc helpers (#12377)Lars Müller3-20/+31
Also add formspec_escape unit test
2022-05-27DevTest: Add nodes and items for testing overlays (#12304)Wuzzy8-0/+151
2022-05-26Force-update shadows when the world is changed (#12364)x20483-6/+19
2022-05-26Reduce size of ContentFeatures structuresfan54-125/+143
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-26Get rid of global buffer that would ruin concurrent MapBlock serializationsfan51-15/+19
2022-05-26Improve code in mapblock_mesh.cpp a bitsfan51-21/+13
2022-05-23Quantize light frustum calculations (#12357)x20481-1/+19
* Quantize light frustum calculations Reduces shadow flicker * Fix function name to match conventions
2022-05-23Formally drop support for building with upstream Irrlichtsfan55-26/+14
It stopped working with (at least) the last commit.
2022-05-23Fix hash implementation for SerializedBlockCachesfan51-3/+2
2022-05-23Use unordered_map instead of map for MapSectorsRichard Try2-2/+2
2022-05-23Add missing concurrency protection in logger (#12325)paradust72-4/+16
2022-05-23Fix no_texture.png for unknown nodes with ID < 125 (#12329)Wuzzy1-1/+1
2022-05-23Docs: clarify spawn_by for decorationsZughy1-3/+2
2022-05-22Add missing comma in example in lua_api.txt (#12339)Wuzzy1-1/+1
2022-05-22Add relative numbers for commands by prepending ~ (#9588)Wuzzy4-48/+261
* 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-22Replace all uses of core::list with std::list (#12313)paradust716-148/+36
2022-05-22Fixes needed to use irrArray backed by std::vector (#12263)paradust76-55/+77
2022-05-22Bump IrrlichtMt version in CIsfan56-6/+6
2022-05-21Don't ignore server disconnects in client codesfan51-3/+5
If the server stops talking to us without saying bye we should actually end the in-game session with an error message.
2022-05-21Fixes to Android build + option to turn LuaJIT on/off for testing purposes ↵paradust72-3/+61
(#12334)
2022-05-21Make no_screenshot image more clear (#12346)Zughy2-0/+3
2022-05-21Patch built-in Lua to fix miscompile on Android (#12347)paradust71-2/+7
2022-05-21Optimize JSON string (de)serialization routinessfan51-104/+113
stringstreams were shown to be slow when reading/writing single characters and there is lots of potential by having functions perform on existing buffers whenever possible.
2022-05-21Improve testSerializeJsonString unit testssfan53-21/+62
this also removes the requirement that / is escaped, there is no reason for doing so.