mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-02 07:21:43 +00:00
ru:: existing flag for entities, to handle magic fountains in the future
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user