1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-08-12 17:29:54 +00:00

Give script-spawned entities a negative ID.

This should prevent most ID conflicts and problems related to that,
e.g. spurious changes to entity positions while working on a map.
This commit is contained in:
fgenesis 2015-11-29 21:43:21 +01:00
parent d8da8576e8
commit f55a70b459
5 changed files with 7 additions and 42 deletions

View file

@ -1864,15 +1864,6 @@ void SceneEditor::skinLevel(pngRawInfo *png, int minX, int minY, int maxX, int m
}
}
void SceneEditor::fixEntityIDs()
{
FOR_ENTITIES(i)
{
Entity *e = *i;
e->assignUniqueID();
}
}
void SceneEditor::generateLevel()
{
//pngSetStandardOrientation(0);