From 61cae4a761c2f72cda44ae269c7007b37a0c14a7 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 26 Jun 2008 10:39:39 +0000 Subject: 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 --- crawl-ref/source/dungeon.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'crawl-ref/source/dungeon.cc') 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; } -- cgit v1.2.3-54-g00ecf