Age | Commit message (Collapse) | Author |
|
Previously, minetest.find_nodes_in_area() was affected by a signed
integer overflow, which was fixed by clamping the area in which the
function works to MAX_MAP_GENERATION_LIMIT & -MAX_MAP_GENERATION_LIMIT.
The problem with that approach is that nodes can exist and even be generated
past MAX_MAP_GENERATION_LIMIT in vanilla Minetest – which, despite the name,
does not specify exactly where the map generator stops working. Therefore,
the bug fix created an unknown amount of other bugs near the map border.
At minimum, those bugs affect the outer mapblocks, where nodes past
MAX_MAP_GENERATION_LIMIT can be generated. Ironically, the first thing
broken by the faulty bug fix was a test case belonging to a workaround that
prevents minetest.find_nodes_in_area() being called with coordinates out of
s16 bounds in the Mineclonia game, thus avoiding signed integer overflow.
Using INT16_MIN+1 & INT16_MAX-1 makes minetest.find_nodes_in_area()
work for all coordinates that worked before the faulty fix, avoiding a
situation where Minetest can place a node in the map, but then not find
it afterwards using minetest_find_nodes_in_area().
|
|
|
|
|
|
|
|
closes #11840
|
|
|
|
|
|
|
|
This is a follow-up change which disables class copies where possible to avoid unnecessary memory movements.
|
|
|
|
|
|
Currently translated at 46.0% (643 of 1396 strings)
|
|
Currently translated at 62.9% (879 of 1396 strings)
|
|
|
|
Currently translated at 97.0% (1355 of 1396 strings)
|
|
Currently translated at 95.3% (1331 of 1396 strings)
|
|
Currently translated at 81.8% (1142 of 1396 strings)
|
|
Currently translated at 81.8% (1142 of 1396 strings)
|
|
Currently translated at 12.6% (177 of 1396 strings)
|
|
Currently translated at 97.2% (1357 of 1396 strings)
|
|
Currently translated at 20.9% (292 of 1396 strings)
|
|
Currently translated at 99.7% (1392 of 1396 strings)
|
|
Currently translated at 20.9% (292 of 1396 strings)
|
|
Currently translated at 97.0% (1355 of 1396 strings)
|
|
Currently translated at 95.9% (1340 of 1396 strings)
|
|
Currently translated at 71.4% (998 of 1396 strings)
|
|
Currently translated at 17.0% (238 of 1396 strings)
|
|
Currently translated at 95.3% (1331 of 1396 strings)
|
|
Currently translated at 94.4% (1319 of 1396 strings)
|
|
Currently translated at 95.2% (1329 of 1396 strings)
|
|
Currently translated at 95.2% (1329 of 1396 strings)
|
|
Currently translated at 56.0% (783 of 1396 strings)
|
|
Currently translated at 27.1% (379 of 1396 strings)
|
|
Currently translated at 100.0% (1396 of 1396 strings)
|
|
Currently translated at 94.4% (1319 of 1396 strings)
|
|
Currently translated at 81.2% (1134 of 1396 strings)
|
|
Currently translated at 92.5% (1292 of 1396 strings)
|
|
Currently translated at 92.5% (1292 of 1396 strings)
|
|
Currently translated at 100.0% (1396 of 1396 strings)
|
|
Currently translated at 30.4% (425 of 1396 strings)
|
|
Currently translated at 99.4% (1389 of 1396 strings)
|
|
Currently translated at 92.3% (1289 of 1396 strings)
|
|
Currently translated at 56.0% (783 of 1396 strings)
|
|
Currently translated at 55.4% (774 of 1396 strings)
|
|
Currently translated at 55.4% (774 of 1396 strings)
|
|
Currently translated at 100.0% (1396 of 1396 strings)
|
|
Currently translated at 81.9% (1144 of 1396 strings)
|
|
Currently translated at 70.3% (982 of 1396 strings)
|
|
Currently translated at 70.3% (982 of 1396 strings)
|
|
Currently translated at 70.3% (982 of 1396 strings)
|