mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-30 09:17:57 +00:00
fix bug in gridbug
This commit is contained in:
@@ -435,7 +435,7 @@ void gridbug::act() {
|
||||
for(int y=0; y<room_y; y++)
|
||||
for(int x=0; x<room_x; x++) times[y][x] = HUGE_VAL;
|
||||
|
||||
for(auto& e: current_room->entities) if(&*e != this) {
|
||||
for(auto& e: current_room->entities) if(&*e != this && e->existing) {
|
||||
auto obox = pixel_to_block(e->get_pixel_bbox());
|
||||
for(int x=obox.minx; x<obox.maxx; x++)
|
||||
for(int y=obox.miny; y<obox.maxy; y++) times[y][x] = -10;
|
||||
|
Reference in New Issue
Block a user