ru:: existing flag for entities, to handle magic fountains in the future

This commit is contained in:
Zeno Rogue
2025-05-03 17:31:52 +02:00
parent 877660deb8
commit 7867902f82
4 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ void playing_frame() {
auto& ents = current_room->entities;
for(auto& e: ents) e->act();
for(auto& e: ents) if(e->existing) e->act();
auto mb = ents.begin();
for(auto& e: ents) if(!e->destroyed) *(mb++) = std::move(e);