diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-24 20:56:37 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-24 20:56:37 +0000 |
commit | 61808dc89ba2d805ed3427ea1a7eb95c4af7f141 (patch) | |
tree | f9e50c2e9b82df997dd6a9970335cb84e193469b /crawl-ref/source/fight.cc | |
parent | 989c9485083c303472aa7eadc84dd578993f8a9c (diff) | |
download | crawl-ref-61808dc89ba2d805ed3427ea1a7eb95c4af7f141.tar.gz crawl-ref-61808dc89ba2d805ed3427ea1a7eb95c4af7f141.zip |
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5224 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r-- | crawl-ref/source/fight.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index 4c84221a77..5b326ddc20 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -608,12 +608,12 @@ bool melee_attack::attack() if (attacker->atype() == ACT_PLAYER) { const bool inSanctuary = (is_sanctuary(you.x_pos, you.y_pos) - || is_sanctuary(def->x, def->y)); - const bool wontAttack = mons_wont_attack(def); - const bool isFriendly = mons_friendly(def); - const bool isNeutral = mons_neutral(def); + || is_sanctuary(def->x, def->y)); + const bool wontAttack = mons_wont_attack(def); + const bool isFriendly = mons_friendly(def); + const bool isNeutral = mons_neutral(def); const bool isUnchivalric = is_unchivalric_attack(&you, def, def); - const bool isHoly = mons_is_holy(def); + const bool isHoly = mons_is_holy(def); if (inSanctuary || wontAttack || (is_good_god(you.religion) && (isNeutral || isHoly)) |