From c98e65d7c1e611743f82997954c259dedbe843b2 Mon Sep 17 00:00:00 2001 From: haranp Date: Sat, 1 Dec 2007 19:38:40 +0000 Subject: 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 --- crawl-ref/source/misc.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/misc.cc') 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] -- cgit v1.2.3-54-g00ecf