1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-17 23:17:39 +00:00

ru:: loot

This commit is contained in:
Zeno Rogue
2025-05-16 16:51:13 +02:00
parent 5bff1f9ef4
commit 742f5f02b7
3 changed files with 38 additions and 1 deletions

View File

@@ -100,7 +100,7 @@ void playing_frame() {
auto& ents = current_room->entities;
for(auto& e: ents) if(e->existing) e->act();
for(auto& e: ents) if(e->existing) e->act(); else e->unact();
auto mb = ents.begin();
for(auto& e: ents) if(!e->destroyed) *(mb++) = std::move(e);