1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-11 03:03:01 +00:00

render entities only if visible

This commit is contained in:
Zeno Rogue
2025-04-27 01:23:00 +02:00
parent 3846ff83c3
commit 0797e540d6
4 changed files with 25 additions and 2 deletions

View File

@@ -245,7 +245,9 @@ void man::draw() {
void render_room_objects(room *r) {
initquickqueue();
if(r == current_room) m.draw();
for(auto& e: r->entities) e->draw();
for(auto& e: r->entities)
if(e->visible(r))
e->draw();
quickqueue();
}