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/beam.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'crawl-ref/source/beam.cc') diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index b5eaa111f8..370b0bb7ad 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -1706,7 +1706,7 @@ static bool _affect_mon_in_wall(bolt &pbolt, item_def *item, int tx, int ty) int mid = mgrd[tx][ty]; if (mid == NON_MONSTER) - return false; + return (false); if (pbolt.is_enchant || (!pbolt.is_explosion && !pbolt.is_big_cloud @@ -1715,10 +1715,10 @@ static bool _affect_mon_in_wall(bolt &pbolt, item_def *item, int tx, int ty) { monsters *mon = &menv[mid]; if (!mons_is_wall_shielded(mon->type)) - return true; + return (true); } - return false; + return (false); } /* @@ -2884,15 +2884,15 @@ void mimic_alert(monsters *mimic) static bool _isBouncy(bolt &beam, unsigned char gridtype) { if (beam.name[0] == '0') - return false; + return (false); if (beam.flavour == BEAM_ELECTRICITY && gridtype != DNGN_METAL_WALL) - return true; + return (true); - if ( (beam.flavour == BEAM_FIRE || beam.flavour == BEAM_COLD) + if ((beam.flavour == BEAM_FIRE || beam.flavour == BEAM_COLD) && gridtype == DNGN_GREEN_CRYSTAL_WALL ) { - return true; + return (true); } return (false); } -- cgit v1.2.3-54-g00ecf