summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/files.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-30 21:51:17 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-30 21:51:17 +0000
commit476660b7d794555c9d976ada2a1cfa8e33fe01ce (patch)
tree0f9c5ee675301424f636c5d7710d0f30b33a5b62 /crawl-ref/source/files.cc
parent2e0507ac62fefe90c1b6a15af5f971d2892d5534 (diff)
downloadcrawl-ref-476660b7d794555c9d976ada2a1cfa8e33fe01ce.tar.gz
crawl-ref-476660b7d794555c9d976ada2a1cfa8e33fe01ce.zip
Add yet more minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6266 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r--crawl-ref/source/files.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc
index 60edca7c98..d59bdc5339 100644
--- a/crawl-ref/source/files.cc
+++ b/crawl-ref/source/files.cc
@@ -1633,7 +1633,6 @@ bool is_existing_level(const level_id &level)
//
// If the target level has not already been visited by the player, this
// function will assert.
-//
bool apply_to_level(const level_id &level, bool preserve_current,
bool (*applicator)())
{
@@ -1650,9 +1649,9 @@ bool apply_to_level(const level_id &level, bool preserve_current,
you.level_type = level.level_type;
// Load the dungeon level...
- load( DNGN_STONE_STAIRS_DOWN_I, LOAD_VISITOR,
- LEVEL_DUNGEON, original.absdepth(),
- original.branch );
+ load(DNGN_STONE_STAIRS_DOWN_I, LOAD_VISITOR,
+ LEVEL_DUNGEON, original.absdepth(),
+ original.branch);
}
// Apply the change.
@@ -1678,8 +1677,8 @@ bool apply_to_all_dungeons(bool (*applicator)())
bool success = applicator();
_save_level(original.absdepth(), original.level_type, original.branch);
- for ( int i = 0; i < MAX_LEVELS; ++i )
- for ( int j = 0; j < NUM_BRANCHES; ++j )
+ for (int i = 0; i < MAX_LEVELS; ++i)
+ for (int j = 0; j < NUM_BRANCHES; ++j)
{
const branch_type br = static_cast<branch_type>(j);
const level_id thislevel(br, subdungeon_depth(br, i));