summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/files.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-20 09:51:59 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-20 09:51:59 +0000
commit4fedf6f33f6055c6e2b9fd7b15694f09ae683c85 (patch)
treee1d23bd2155e76f581bfa0b0feab7d54708e3fcc /crawl-ref/source/files.cc
parent90e4386f60d35d54fefa08a5f5266499e1a6e529 (diff)
downloadcrawl-ref-4fedf6f33f6055c6e2b9fd7b15694f09ae683c85.tar.gz
crawl-ref-4fedf6f33f6055c6e2b9fd7b15694f09ae683c85.zip
Dungeon applicator functions will now return true if any of their calls
returned true, not just the one on the current level. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3306 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r--crawl-ref/source/files.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc
index f9444b77f6..8de0fc3b40 100644
--- a/crawl-ref/source/files.cc
+++ b/crawl-ref/source/files.cc
@@ -1498,7 +1498,8 @@ bool apply_to_all_dungeons(bool (*applicator)())
last_visited_branch );
// Modify it...
- applicator();
+ if ( applicator() )
+ success = true;
// And save it back.
save_level(you.your_level, LEVEL_DUNGEON, you.where_are_you);