diff options
author | Neil Moore <neil@s-z.org> | 2013-11-15 17:26:11 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-11-15 17:26:11 -0500 |
commit | e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68 (patch) | |
tree | ec3e4b86d3b4ed96250f735b4e597e83ee886de8 /crawl-ref/source/mon-behv.cc | |
parent | b65bf4d5198c19095e3084a88983680df19ec5ee (diff) | |
download | crawl-ref-e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68.tar.gz crawl-ref-e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68.zip |
More formatting fixes for return (...);
Diffstat (limited to 'crawl-ref/source/mon-behv.cc')
-rw-r--r-- | crawl-ref/source/mon-behv.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc index 7bbcc66513..b2e28d4c45 100644 --- a/crawl-ref/source/mon-behv.cc +++ b/crawl-ref/source/mon-behv.cc @@ -99,8 +99,8 @@ static bool _mon_tries_regain_los(monster* mon) } // Randomize it a bit to make it less predictable. - return (mons_intel(mon) == I_NORMAL && !one_chance_in(10) - || mons_intel(mon) == I_HIGH && !one_chance_in(20)); + return mons_intel(mon) == I_NORMAL && !one_chance_in(10) + || mons_intel(mon) == I_HIGH && !one_chance_in(20); } // Monster tries to get into a firing position. Among the cells which have @@ -258,13 +258,13 @@ static void _set_curse_skull_lurk_pos(monster* mon) static bool _stabber_keep_distance(const monster* mon, const actor* foe) { - return (mons_class_flag(mon->type, M_STABBER) - && !mon->berserk_or_insane() - && (mons_has_incapacitating_ranged_attack(mon, foe) - || mons_has_incapacitating_spell(mon, foe)) - && !foe->incapacitated() - && !adjacent(mon->pos(), foe->pos()) - && !mons_aligned(mon, foe)); + return mons_class_flag(mon->type, M_STABBER) + && !mon->berserk_or_insane() + && (mons_has_incapacitating_ranged_attack(mon, foe) + || mons_has_incapacitating_spell(mon, foe)) + && !foe->incapacitated() + && !adjacent(mon->pos(), foe->pos()) + && !mons_aligned(mon, foe); } //--------------------------------------------------------------- |