summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-25 03:05:05 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-25 03:05:05 +0000
commitef9621cf23810e12b8d3f77ba8de3538d4f02fc0 (patch)
tree2b29bdfb5a13711b63aee3fd5c371adad4ee7680 /crawl-ref/source/misc.cc
parent516c6677528ba72ce7b07dba71cbda09840d0d03 (diff)
downloadcrawl-ref-ef9621cf23810e12b8d3f77ba8de3538d4f02fc0.tar.gz
crawl-ref-ef9621cf23810e12b8d3f77ba8de3538d4f02fc0.zip
[2455489] Fixing "dark" levels after crashes, due to the tile flavor being set after the level was saved. (This wasn't a problem until it started being saved recently.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7968 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc15
1 files changed, 2 insertions, 13 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index 415910a7e2..cdd0b3157f 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -1850,11 +1850,8 @@ void up_stairs(dungeon_feature_type force_stair,
const coord_def stair_pos = you.pos();
-#ifdef USE_TILE
- const bool newlevel =
-#endif
- load(stair_taken, LOAD_ENTER_LEVEL, old_level_type,
- old_level, old_where);
+ load(stair_taken, LOAD_ENTER_LEVEL, old_level_type,
+ old_level, old_where);
set_entry_cause(entry_cause, old_level_type);
entry_cause = you.entry_cause;
@@ -1888,10 +1885,6 @@ void up_stairs(dungeon_feature_type force_stair,
// Tell stash-tracker and travel that we've changed levels.
trackers_init_new_level(true);
-#ifdef USE_TILE
- TileNewLevel(newlevel);
-#endif // USE_TILE
-
if (collect_travel_data)
{
// Update stair information for the stairs we just ascended, and the
@@ -2455,10 +2448,6 @@ void down_stairs( int old_level, dungeon_feature_type force_stair,
trackers_init_new_level(true);
-#ifdef USE_TILE
- TileNewLevel(newlevel);
-#endif // USE_TILE
-
viewwindow(true, true);
if (collect_travel_data)