summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-01 19:38:40 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-01 19:38:40 +0000
commitc98e65d7c1e611743f82997954c259dedbe843b2 (patch)
treeb1da44fc24119b294a01311e0a64891be2578679 /crawl-ref/source/misc.cc
parent37ffd29a84d48b08c2ef799a271f3ab83202a03a (diff)
downloadcrawl-ref-c98e65d7c1e611743f82997954c259dedbe843b2.tar.gz
crawl-ref-c98e65d7c1e611743f82997954c259dedbe843b2.zip
Added a function, apply_to_all_dungeons(), which basically acts as
a Visitor for every dungeon level. The idea is to use this for galaxy-spanning effects, e.g. if you want to shuffle all the decks in existence or deconvert all the Beogh-converted orcs. Not well tested; might be buggy. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2960 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index 2335c74b42..fbf60e9cee 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -903,7 +903,7 @@ void down_stairs( int old_level, dungeon_feature_type force_stair,
if (stair_find == DNGN_ENTER_ZOT)
{
- int num_runes = runes_in_pack();
+ const int num_runes = runes_in_pack();
if (num_runes < NUMBER_OF_RUNES_NEEDED)
{
@@ -1030,8 +1030,7 @@ void down_stairs( int old_level, dungeon_feature_type force_stair,
}
if (old_level_type != you.level_type && you.level_type == LEVEL_DUNGEON)
- mprf("Welcome back to %s!",
- branches[you.where_are_you].longname);
+ mprf("Welcome back to %s!", branches[you.where_are_you].longname);
if (!player_is_airborne()
&& you.duration[DUR_CONF]