summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-26 10:39:39 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-26 10:39:39 +0000
commit61cae4a761c2f72cda44ae269c7007b37a0c14a7 (patch)
treefec8ec71ca7ca6eebd9d48881bc5ee3fe27d04c1 /crawl-ref/source/dungeon.cc
parentd4acdf4a6a4b73607d58714a66efd372674adb56 (diff)
downloadcrawl-ref-61cae4a761c2f72cda44ae269c7007b37a0c14a7.tar.gz
crawl-ref-61cae4a761c2f72cda44ae269c7007b37a0c14a7.zip
Misc. minor cleanups. (Yes, a huge amount of them but still...)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6146 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r--crawl-ref/source/dungeon.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index fc7a5cfcc4..3aee3dde2f 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -6164,7 +6164,7 @@ bool octa_room(spec_room &sr, int oblique_max,
{
for (y = sr.y1 + oblique; y < sr.y2 - oblique; y++)
if (grd[x][y] == DNGN_BUILDER_SPECIAL_WALL)
- return false;
+ return (false);
if (oblique > 0)
oblique--;
@@ -6197,7 +6197,7 @@ bool octa_room(spec_room &sr, int oblique_max,
oblique += 2;
}
- return true;
+ return (true);
}
static void _find_maze_neighbours(const coord_def &c,
@@ -6756,10 +6756,10 @@ static bool _treasure_area(int level_number, unsigned char ta1_x,
ta2_y++;
if (ta2_x <= ta1_x || ta2_y <= ta1_y)
- return false;
+ return (false);
if ((ta2_x - ta1_x) * (ta2_y - ta1_y) >= 40)
- return false;
+ return (false);
for (x_count = ta1_x; x_count < ta2_x; x_count++)
for (y_count = ta1_y; y_count < ta2_y; y_count++)
@@ -6777,7 +6777,7 @@ static bool _treasure_area(int level_number, unsigned char ta1_x,
}
}
- return true;
+ return (true);
}
static void _diamond_rooms(int level_number)
@@ -7606,8 +7606,8 @@ coord_def dgn_find_nearby_stair(dungeon_feature_type stair_to_find,
void dgn_set_lt_callback(std::string level_type_name,
std::string callback_name)
{
- ASSERT(level_type_name != "");
- ASSERT(callback_name != "");
+ ASSERT(!level_type_name.empty());
+ ASSERT(!callback_name.empty());
level_type_post_callbacks[level_type_name] = callback_name;
}