aboutsummaryrefslogtreecommitdiff
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-06-28Remove an unused method and header includessfan52-7/+0
2022-06-28Remove tile_images and special_materials obsolete code (#12455)Zughy3-23/+2
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2022-06-26Increase max FPS on Android to 60 (#12373)ROllerozxa1-1/+0
2022-06-26Fix two memleak reports from Coverity (#12466)JosiahWI2-2/+3
2022-06-26Docs: remove background9 incorrect example (#12464)Zughy1-2/+0
2022-06-20Re-order sound-related code (#12382)SmallJoker20-188/+140
Dropped ServerSoundParams -> moved to ServerPlayingSound. This gets rid of the duplicated 'fade' and 'pitch' values on server-side where only one was used anyway. SimpleSoundSpec is the basic sound without positional information, hence 'loop' is included. Recursively added PROTOCOL_VERSION to most functions to reduce the versioning mess in the future. Per-type version numbers are kept for now as a safety rope in a special case.
2022-06-20Annotate light spread functions with commentssfan52-8/+42
2022-06-19Fix CAO light calculation issuesfan51-1/+1
2022-06-17Fix updating glow on entitiessfan52-5/+3
was broken in #10021 more than 2 years ago(!)
2022-06-16Fix zlib (de)compressor memory leakssavilli1-5/+16
2022-06-16Update my nameNathanaël Courant10-10/+10
2022-06-15Add description of privileges (#12021)x20481-0/+85
* Add description of privileges * Restructure Privileges section based on feedback * Suggestion by sfan5 Co-authored-by: sfan5 <sfan5@live.de> * Suggestion by sfan5 Co-authored-by: sfan5 <sfan5@live.de> * Incorporate comments by sfan5 Co-authored-by: sfan5 <sfan5@live.de>
2022-06-15Add unittests for entity lifecycle and callbackssfan52-3/+136
2022-06-15Fix entity related bugssfan52-3/+6
* Make minetest.add_entity() binary-safe * Fix on_death pushing dummy ObjectRef instead of nil
2022-06-14Fix Android input box crashROllerozxa1-5/+0
2022-06-13lua_api.txt: add missing backticksZughy1-3/+3
2022-06-13Improve lua_api.txt a bunchsfan51-205/+215
2022-06-13Fix permissions on workflow-generated macOS builds (#12422)Shane Liesegang1-1/+8
2022-06-11Inline triLinearInterpolationNoEase and triLinearInterpolation (#12421)paradust71-61/+28
Performance profiling on Linux AMD64 showed this to be a significant bottleneck. The non-inlined functions are expensive due to XMM registers spilling onto the stack.
2022-06-11on_deactivate: distinguish removal and unloading (#11931)Lars Müller6-12/+18
Sometimes you need to be able to do removal-related cleanup, such as removing files from disk, or entries from a database. staticdata obviously isn't suitable for large data. The data shouldn't be removed if the entity is unloaded, only if it is removed.
2022-06-11No damage effects on hp_max change (#11846)Lars Müller9-11/+23
2022-06-11Builtin: Redo serialize.lua (#11427)Lars Müller3-206/+342
Features: * Support for arbitrary references, including self-referencing * Short output, references "long" strings as a bonus * Around the same speed, potentially slower if long, short keys are present * Properly works with NaN and inf
2022-06-11Fix LBM docsJude Melton-Houghton1-3/+3
2022-06-07Fix Gitlab-CI pipelinessfan51-3/+4
2022-06-07Sanitize player position and speed server-side (#12396)sfan54-6/+25
2022-06-07Mapblock Mesh BspTree: Increase the depth of block-level splitsx20481-3/+8
... before going node-level triangle search. Fixes transparent grass on transparent land
2022-06-06core.formspec_escape: Restore backwards compatLars Müller1-1/+1
Support numbers as arguments by using `string.gsub(text, ...)` instead of `text:gsub(...)` which will coerce `text` to a string
2022-06-06Remove invalid fps_max on Macparadust71-1/+0
2022-06-05Bug report template: ask contributors to provide a code snippet (#12405)Zughy1-3/+3
2022-06-05Fix crash in commit a69b7abe00fb818fd88f3cd04e7f9997ffd21072sfan51-1/+2
2022-06-05Android: Add support for sharing debug.txt (#12370)rubenwardy9-2/+81
2022-06-05Improve LBMManager::applyLBMs() codesfan51-6/+5
Fixes a possible bug for lbms on content ID zero and removes unsafe casts.
2022-06-05Add register dialog to separate login/register (#12185)rubenwardy18-402/+232
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-05Hide "Autosave Screen Size" on AndroidROllerozxa1-7/+9
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