Solves a game-locking bug that occurred after killing an enemy.
Problem was due to the enemy removing themselves from the agents list and then another agent referencing them afterwards. Not sure why this only became a problem only now.
Solved by re-implementing removeFromWorld, where an entity can be flagged for deletion upon the next update pass.
Solves a game-locking bug that occurred after killing an enemy. Problem was due to the enemy removing themselves from the agents list and then another agent referencing them afterwards. Not sure why this only became a problem only now. Solved by re-implementing removeFromWorld, where an entity can be flagged for deletion upon the next update pass.