1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

Fix AreaStore's IDs persistence (#8888)

Improve documentation
Read old formats
Fix free ID function. Return first gap in map
This commit is contained in:
SmallJoker
2019-09-21 17:54:52 +02:00
committed by GitHub
parent 5fa614d97e
commit fec30e37ac
6 changed files with 90 additions and 42 deletions

View File

@@ -185,6 +185,7 @@ int LuaAreaStore::l_insert_area(lua_State *L)
if (lua_isnumber(L, 5))
a.id = lua_tonumber(L, 5);
// Insert & assign a new ID if necessary
if (!ast->insertArea(&a))
return 0;