summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-16 17:34:43 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-16 17:34:43 +0000
commit03c498835e827368791edd1076f72bfbfcdf05c7 (patch)
tree21e881be15bcc94f7440252d22eee3b0a3b46b76 /crawl-ref/source/fight.cc
parentcfa1009c4b69e7f42264d9b8d3e1ead97239e12f (diff)
downloadcrawl-ref-03c498835e827368791edd1076f72bfbfcdf05c7.tar.gz
crawl-ref-03c498835e827368791edd1076f72bfbfcdf05c7.zip
Add a few more miscellaneous cleanups.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3673 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 0d8d54cdc7..3c767268d1 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -630,18 +630,18 @@ bool melee_attack::player_attack()
if (player_check_monster_died())
return (true);
+ player_sustain_passive_damage();
+
+ // At this point, pretend we didn't hit at all.
+ if (shield_blocked)
+ did_hit = false;
+
if (hit_woke_orc)
{
// call function of orcs first noticing you but with
// beaten-up conversion messages (if applicable)
beogh_follower_convert(def, true);
}
-
- player_sustain_passive_damage();
-
- // At this point, pretend we didn't hit at all.
- if (shield_blocked)
- did_hit = false;
}
else
player_warn_miss();