aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* on_deactivate: distinguish removal and unloading (#11931)Lars Müller2022-06-114-9/+9
| | | 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.
* No damage effects on hp_max change (#11846)Lars Müller2022-06-119-11/+23
|
* Sanitize player position and speed server-side (#12396)sfan52022-06-074-6/+25
|
* Mapblock Mesh BspTree: Increase the depth of block-level splitsx20482022-06-071-3/+8
| | | | ... before going node-level triangle search. Fixes transparent grass on transparent land
* Remove invalid fps_max on Macparadust72022-06-061-1/+0
|
* Fix crash in commit a69b7abe00fb818fd88f3cd04e7f9997ffd21072sfan52022-06-051-1/+2
|
* Android: Add support for sharing debug.txt (#12370)rubenwardy2022-06-054-0/+35
|
* Improve LBMManager::applyLBMs() codesfan52022-06-051-6/+5
| | | | Fixes a possible bug for lbms on content ID zero and removes unsafe casts.
* Add register dialog to separate login/register (#12185)rubenwardy2022-06-0512-385/+55
| | | | | | | | | | 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
* Fix BSD iconv declarationsavilli2022-06-051-14/+0
|
* fix integer overflow in mapgen (#11641)JosiahWI2022-06-033-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
* Properly keep noclip state in Game and ClientMapsfan52022-06-033-17/+23
|
* Remove obsolete eye_height related workaroundsfan52022-06-032-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.
* Add helper functions to make tool usable n times (#12047)Wuzzy2022-06-036-3/+48
|
* Fix use-after-free in node meta cleanupsfan52022-05-291-1/+3
| | | | bug introduced in 8908a9101608d3343023b470743ef63f1c44b0b7
* Reject registering node with empty namesfan52022-05-291-0/+3
| | | | fixes #10769
* Minor code improvements around active block keepingsfan52022-05-292-9/+17
|
* Immediately activate blocks when a player joinssfan52022-05-292-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.
* Remove debug.get/setmetatable from security whiteliststefan2022-05-291-2/+0
| | | | fixes #12216
* Handle lua entity HP changes correctly (like punches)sfan52022-05-292-10/+21
| | | | fixes #11975
* Make sure real disconnect reason isn't overwrittensfan52022-05-291-1/+1
| | | | bug introduced in 2f32044273d107e82fb1c35d4a0f616fa480cdf0
* Fix linking with Postgres libs on older cmake versionssfan52022-05-291-0/+1
| | | | closes #12149
* Remove remains of video mode queryingsfan52022-05-292-16/+0
|
* Get rid of node metadata when it becomes emptysfan52022-05-292-7/+12
| | | | fixes #8943
* Optimize Server::sendMetadataChanged a bitsfan52022-05-292-20/+21
| | | | The distance check also never worked as intended, now fixed.
* Add API function to invoke player respawnsfan52022-05-294-3/+25
| | | | closes #12272
* Protect a few more settings from being set from modssfan52022-05-291-4/+17
| | | | Of those settings main_menu_script has concrete security impact, the rest are added out of abundance of caution.
* Map opaque waving leaves to allfaces drawtypesfan52022-05-291-2/+9
| | | | fixes #9842
* Improve a translation stringsfan52022-05-291-4/+2
| | | | fixes #11442
* Force-update shadows when the world is changed (#12364)x20482022-05-263-6/+19
|
* Reduce size of ContentFeatures structuresfan52022-05-264-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.
* Get rid of global buffer that would ruin concurrent MapBlock serializationsfan52022-05-261-15/+19
|
* Improve code in mapblock_mesh.cpp a bitsfan52022-05-261-21/+13
|
* Quantize light frustum calculations (#12357)x20482022-05-231-1/+19
| | | | | | | * Quantize light frustum calculations Reduces shadow flicker * Fix function name to match conventions
* Fix hash implementation for SerializedBlockCachesfan52022-05-231-3/+2
|
* Use unordered_map instead of map for MapSectorsRichard Try2022-05-232-2/+2
|
* Add missing concurrency protection in logger (#12325)paradust72022-05-232-4/+16
|
* Fix no_texture.png for unknown nodes with ID < 125 (#12329)Wuzzy2022-05-231-1/+1
|
* Replace all uses of core::list with std::list (#12313)paradust72022-05-2216-148/+36
|
* Fixes needed to use irrArray backed by std::vector (#12263)paradust72022-05-226-55/+77
|
* Don't ignore server disconnects in client codesfan52022-05-211-3/+5
| | | | | If the server stops talking to us without saying bye we should actually end the in-game session with an error message.
* Optimize JSON string (de)serialization routinessfan52022-05-211-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.
* Improve testSerializeJsonString unit testssfan52022-05-213-21/+62
| | | | | this also removes the requirement that / is escaped, there is no reason for doing so.
* Deprecate game.conf name, use title instead (#12030)rubenwardy2022-05-216-14/+70
|
* Improve shadow filters (#12195)x20482022-05-214-1/+6
| | | | | | | | | * Rewrite shadow filtering for the new distortion * Calculate penumbra radius using a single sample * Avoid peter-panning effect due to filtering of short shadows * Add adaptive filter quality for soft shadows * Avoid sharp shadows on surfaces without normals (e.g. plants) * Increase default and maximum soft shadow radius * Make line numbers in shader errors match the code
* Fix lighting of upright_sprite entities (#12336)x20482022-05-201-6/+2
| | | Use MeshNode materials to set the light since ReadOnlyMaterials is now false
* Fix lighting of the wield mesh (#12341)x20482022-05-203-3/+11
| | | | | * Assign node light to player before final color blend. Fixes day/night lightbank ratio for wield meshes * Update wield mesh light when changing mesh
* Use std::map instead of core::map (#12301)paradust72022-05-184-27/+25
|
* Remove confusing message in keybindings menusavilli2022-05-171-1/+1
|
* Initialize wield mesh color when wield_image is setDmitry Kostenko2022-05-151-0/+3
| | | | #12245