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:
parent
d8da8576e8
commit
f55a70b459
5 changed files with 7 additions and 42 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue