diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-08 03:33:56 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-08 03:33:56 +0000 |
commit | 5a8bb18ce83affab924d3ca9be5c0ebf81e999a3 (patch) | |
tree | 6f3e923206c911e04716c97d877f0250f78638a5 /crawl-ref/source/religion.cc | |
parent | 69eb9a98d4a441c5158a2535f5d25c42b2ef5ede (diff) | |
download | crawl-ref-5a8bb18ce83affab924d3ca9be5c0ebf81e999a3.tar.gz crawl-ref-5a8bb18ce83affab924d3ca9be5c0ebf81e999a3.zip |
Add more minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9378 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 4502e19793..a929e07851 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -1300,9 +1300,7 @@ static bool _blessing_wpn(monsters* mon) int slot; do - { slot = (coinflip()) ? weapon : alt_weapon; - } while (slot == NON_ITEM); item_def& wpn(mitm[slot]); @@ -1330,9 +1328,7 @@ static bool _blessing_AC(monsters* mon) int slot; do - { slot = (coinflip()) ? armour : shield; - } while (slot == NON_ITEM); item_def& arm(mitm[slot]); @@ -1372,7 +1368,7 @@ static bool _blessing_balms(monsters *mon) if (mon->del_ench(ENCH_FATIGUE, true)) success = true; - return success; + return (success); } static bool _blessing_healing(monsters* mon) @@ -1403,9 +1399,7 @@ static bool _tso_blessing_holy_wpn(monsters* mon) int slot; do - { slot = (coinflip()) ? weapon : alt_weapon; - } while (slot == NON_ITEM); item_def& wpn(mitm[slot]); @@ -1449,9 +1443,7 @@ static bool _tso_blessing_holy_arm(monsters* mon) int slot; do - { slot = (coinflip()) ? armour : shield; - } while (slot == NON_ITEM); item_def& arm(mitm[slot]); @@ -1490,7 +1482,7 @@ static bool _increase_ench_duration(monsters *mon, static int _tso_blessing_extend_stay(monsters* mon) { if (!mon->has_ench(ENCH_ABJ)) - return 0; + return (0); mon_enchant abj = mon->get_ench(ENCH_ABJ); |