diff options
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/acr.cc | 12 | ||||
-rw-r--r-- | crawl-ref/source/tile1.cc | 4 |
2 files changed, 11 insertions, 5 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index b7b440ea8f..f2f3225a51 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -3649,9 +3649,13 @@ static void open_door(int move_x, int move_y, bool check_confused) // Even if some of the door is out of LOS, we want the entire // door to be updated. Hitting this case requires a really big // door! - // Should set_terrain_changed() be used, too? if (is_terrain_seen(dc)) + { set_envmap_obj(dc.x, dc.y, DNGN_OPEN_DOOR); +#ifdef USE_TILE + tile_place_tile_bk(dc.x, dc.y, TILE_DNGN_OPEN_DOOR); +#endif + } } you.turn_is_over = true; } @@ -3775,9 +3779,13 @@ static void close_door(int door_x, int door_y) // Even if some of the door is out of LOS once it's closed (or even // if some of it is out of LOS when it's open), we want the entire // door to be updated. - // Should set_terrain_changed() be used, too? if (is_terrain_seen(dc)) + { set_envmap_obj(dc.x, dc.y, DNGN_CLOSED_DOOR); +#ifdef USE_TILE + tile_place_tile_bk(dc.x, dc.y, TILE_DNGN_CLOSED_DOOR); +#endif + } } you.turn_is_over = true; } diff --git a/crawl-ref/source/tile1.cc b/crawl-ref/source/tile1.cc index 6c2feea8b4..06e3342603 100644 --- a/crawl-ref/source/tile1.cc +++ b/crawl-ref/source/tile1.cc @@ -3431,10 +3431,8 @@ void tile_init_flavor() bool door_left = (x > 0 && grd[x-1][y] == grd[x][y]); bool door_right = (x < GXM - 1 && grd[x+1][y] == grd[x][y]); - bool door_up = (y > 0 && grd[x][y-1] == grd[x][y]); - bool door_down = (y < GYM - 1 && grd[x][y+1] == grd[x][y]); - if ((door_left || door_right) && !door_up && !door_down) + if (door_left || door_right) { int target; if (door_left && door_right) |