From 8aab14729f0fa115555cc4eda9d2b8c1e71873aa Mon Sep 17 00:00:00 2001 From: ennewalker Date: Sat, 7 Jun 2008 18:47:18 +0000 Subject: [1964967] Fixing issue where the abyss and the labyrinth had stale out of sight tiles on the left and right side of the screen. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5549 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tile1.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'crawl-ref/source/tile1.cc') diff --git a/crawl-ref/source/tile1.cc b/crawl-ref/source/tile1.cc index b59cb13cc1..5a15ea7fb6 100644 --- a/crawl-ref/source/tile1.cc +++ b/crawl-ref/source/tile1.cc @@ -51,6 +51,16 @@ void TileNewLevel(bool first_time) if (first_time) tile_init_flavor(); + if (!player_in_mappable_area()) + { + for (unsigned int x = 0; x < GXM; x++) + for (unsigned int y = 0; y < GYM; y++) + { + env.tile_bk_fg[x][y] = 0; + env.tile_bk_bg[x][y] = TILE_DNGN_UNSEEN; + } + } + // Fix up stair markers. The travel information isn't hooked up // until after we change levels. So, look through all of the stairs // on this level and check if they still need the stair flag. -- cgit v1.2.3-54-g00ecf