mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-19 09:22:49 +00:00
fix bug in gridbug
This commit is contained in:
parent
f47bdc9930
commit
49ba40f5ed
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user