summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilepick.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/tilepick.cc')
-rw-r--r--crawl-ref/source/tilepick.cc14
1 files changed, 2 insertions, 12 deletions
diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc
index d8e75bd287..2eedc91c6b 100644
--- a/crawl-ref/source/tilepick.cc
+++ b/crawl-ref/source/tilepick.cc
@@ -67,15 +67,8 @@ void TileNewLevel(bool first_time)
unsigned int tile = env.tile_bk_bg[x][y];
if (!(tile & TILE_FLAG_NEW_STAIR))
continue;
-
- const coord_def gc(x,y);
- int object = grd(gc);
-
- if (!feat_is_travelable_stair((dungeon_feature_type)object)
- || travel_cache.know_stair(gc))
- {
+ if (!is_unkown_stair(coord_def(x,y)))
env.tile_bk_bg[x][y] &= ~TILE_FLAG_NEW_STAIR;
- }
}
}
@@ -4544,11 +4537,8 @@ void tile_draw_floor()
{
if (object == DNGN_DETECTED_SECRET_DOOR)
bg |= TILE_FLAG_WAS_SECRET;
- else if (feat_is_travelable_stair((dungeon_feature_type)object)
- && !travel_cache.know_stair(gc))
- {
+ else if (is_unkown_stair(gc))
bg |= TILE_FLAG_NEW_STAIR;
- }
}
}