diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-02 13:46:15 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-02 13:46:15 +0000 |
commit | c5ffdfb13fef3e9bd72904c5d39c549ac2939704 (patch) | |
tree | 5fb3c1c240eb4b9549fb94e0c0e3fe5970e5c732 /crawl-ref/source/monstuff.cc | |
parent | b76663efc3848fa64e0133a55b339f691472e217 (diff) | |
download | crawl-ref-c5ffdfb13fef3e9bd72904c5d39c549ac2939704.tar.gz crawl-ref-c5ffdfb13fef3e9bd72904c5d39c549ac2939704.zip |
Comment fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6335 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 7627b6e4f3..c20888d58e 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -5673,24 +5673,24 @@ static bool _swap_monsters(const int mover_idx, const int moved_idx) if (mons_is_stationary(moved)) return false; - // Swapping is a purposful action + // Swapping is a purposeful action. if (mover->confused()) return false; - // Right now just happens in sanctuary + // Right now just happens in sanctuary. if (!is_sanctuary(mover->x, mover->y) || !is_sanctuary(moved->x, moved->y)) return false; // A friendly or good-neutral monster moving past a fleeing hostile - // or neutral monster, or visa-versa + // or neutral monster, or vice versa. if (mons_wont_attack(mover) == mons_wont_attack(moved) || mons_is_fleeing(mover) == mons_is_fleeing(moved)) { return false; } - // Don't swap places if the player explicitly ordered their pet - // to attack monsters. + // Don't swap places if the player explicitly ordered their pet to + // attack monsters. if ((mons_friendly(mover) || mons_friendly(moved)) && you.pet_target != MHITYOU && you.pet_target != MHITNOT) { @@ -5715,7 +5715,7 @@ static bool _swap_monsters(const int mover_idx, const int moved_idx) mover->x = moved_pos.x; mover->y = moved_pos.y; - + moved->x = mover_pos.x; moved->y = mover_pos.y; |