Remove entityclass::cleanup()

This function's sole purpose was to make sure obj.nentity was in sync,
and that obj.nentity-1 pointed to the last 'active' entity in
obj.entities. But now that obj.nentity is removed and we use
obj.entities.size() instead, it is no longer necessary.
This commit is contained in:
Misa
2020-04-03 14:31:32 -07:00
committed by Ethan Lee
parent fd417d6a8c
commit 744c685614
4 changed files with 0 additions and 12 deletions

View File

@@ -498,8 +498,6 @@ void towerlogic()
}
//now! let's clean up removed entities
obj.cleanup();
//Looping around, room change conditions!
}
@@ -1014,9 +1012,6 @@ void gamelogic()
obj.entitycollisioncheck(); // Check ent v ent collisions, update states
}
//now! let's clean up removed entities
obj.cleanup();
//Using warplines?
if (obj.customwarpmode) {
//Rewritten system for mobile update: basically, the new logic is to