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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user