diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-21 12:37:25 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-21 12:37:25 -0600 |
commit | 4277eaea5e02fb69d64193a0395357e2c346afdb (patch) | |
tree | 68806b639fbb4d2e08215b12517c86c2eee0fe94 /crawl-ref/source/mon-movetarget.cc | |
parent | 505571294e7ca02c0af89ff2b25f3cecde439448 (diff) | |
download | crawl-ref-4277eaea5e02fb69d64193a0395357e2c346afdb.tar.gz crawl-ref-4277eaea5e02fb69d64193a0395357e2c346afdb.zip |
Add formatting fixes.
This mostly puts && and || on the proper lines, per the style guide.
Diffstat (limited to 'crawl-ref/source/mon-movetarget.cc')
-rw-r--r-- | crawl-ref/source/mon-movetarget.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/mon-movetarget.cc b/crawl-ref/source/mon-movetarget.cc index 8bdec65fb4..83c8a12989 100644 --- a/crawl-ref/source/mon-movetarget.cc +++ b/crawl-ref/source/mon-movetarget.cc @@ -721,8 +721,8 @@ static bool _choose_random_patrol_target_grid(monsters *mon) // and the patrol point is out of sight, too. Such a case // will be handled below, though it might take a while until // a monster gets out of a deadlock. (5% chance per turn.) - if (!patrol.see_cell(*ri) && - (!is_smart || !lm.see_cell(*ri))) + if (!patrol.see_cell(*ri) + && (!is_smart || !lm.see_cell(*ri))) { continue; } @@ -733,8 +733,8 @@ static bool _choose_random_patrol_target_grid(monsters *mon) // make sure the new target brings us into reach of it. // This means that the target must be reachable BOTH from // the patrol point AND the current position. - if (!patrol.see_cell(*ri) || - !lm.see_cell(*ri)) + if (!patrol.see_cell(*ri) + || !lm.see_cell(*ri)) { continue; } |