summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tile1.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-07 18:47:18 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-07 18:47:18 +0000
commit8aab14729f0fa115555cc4eda9d2b8c1e71873aa (patch)
treede00d612c71e6975a04a28e1555f354b4ee59e7a /crawl-ref/source/tile1.cc
parentf5156c1a88350f8f2534e1bc80847172e74cf489 (diff)
downloadcrawl-ref-8aab14729f0fa115555cc4eda9d2b8c1e71873aa.tar.gz
crawl-ref-8aab14729f0fa115555cc4eda9d2b8c1e71873aa.zip
[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
Diffstat (limited to 'crawl-ref/source/tile1.cc')
-rw-r--r--crawl-ref/source/tile1.cc10
1 files changed, 10 insertions, 0 deletions
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.