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/directn.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/directn.cc') diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index c0862fdda5..7b787fa0fa 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -255,7 +255,7 @@ static void draw_ray_glyph(const coord_def &pos, int colour, static bool _mon_submerged_in_water(const monsters *mon) { if (!mon) - return false; + return (false); return (grd[mon->x][mon->y] == DNGN_SHALLOW_WATER && see_grid(mon->x, mon->y) @@ -265,9 +265,9 @@ static bool _mon_submerged_in_water(const monsters *mon) static bool _is_target_in_range(int x, int y, int range) { - // range doesn't matter + // Range doesn't matter. if (range == -1) - return true; + return (true); return (grid_distance(you.x_pos, you.y_pos, x, y) <= range); } @@ -1367,14 +1367,14 @@ static bool _find_monster( int x, int y, int mode, bool need_path, // Now compare target modes. if (mode == TARG_ANY) - return true; + return (true); if (mode == TARG_FRIEND) return (mons_friendly(&menv[targ_mon] )); ASSERT(mode == TARG_ENEMY); if (mons_friendly(&menv[targ_mon])) - return false; + return (false); // Don't target zero xp monsters, unless target_zero_exp is set. return (Options.target_zero_exp @@ -1407,7 +1407,7 @@ static bool _find_object(int x, int y, int mode, const int item = igrd[x][y]; if (item == NON_ITEM && !is_mimic) - return false; + return (false); return (in_los(x, y) || Options.target_oos && is_terrain_seen(x, y) && (is_stash(x, y) || is_mimic)); -- cgit v1.2.3-54-g00ecf