add entity.despawn(...)

This commit is contained in:
MihailRis
2024-06-27 14:26:51 +03:00
parent 6d7f950410
commit e11760a5e4
4 changed files with 40 additions and 3 deletions
+1
View File
@@ -40,6 +40,7 @@ void LevelController::update(float delta, bool input, bool pause) {
level->objects.end()
);
level->entities->clean();
if (!pause) {
// update all objects that needed
for (const auto& obj : level->objects) {