summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-08 06:40:21 +0000
committerpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-08 06:40:21 +0000
commit2d910749bdbcbbb440daaf0af608ae65c8af70fb (patch)
tree01f28af56a9a6ff717b13a27442848b5a20b9d59 /crawl-ref/source/player.cc
parentb7b3d0871a57310f12d29caab8e002fe116e3594 (diff)
downloadcrawl-ref-2d910749bdbcbbb440daaf0af608ae65c8af70fb.tar.gz
crawl-ref-2d910749bdbcbbb440daaf0af608ae65c8af70fb.zip
Fix compile in debug
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3538 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index f4cf3381bc..2e0d3968fd 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -3732,8 +3732,12 @@ void display_char_status()
(move_cost == 10) ? "average" :
(move_cost < 13) ? "slow"
: "very slow" );
-/*
+
+#if DEBUG_DIAGNOSTICS
const int to_hit = calc_your_to_hit( false ) * 2;
+ mprf("To-hit: %d", to_hit);
+#endif
+/*
// Messages based largely on percentage chance of missing the
// average EV 10 humanoid, and very agile EV 30 (pretty much
// max EV for monsters currently).
@@ -3753,9 +3757,6 @@ void display_char_status()
(to_hit < 100) ? "You feel comfortable with your ability to fight"
: "You feel confident with your ability to fight" );
*/
-#if DEBUG_DIAGNOSTICS
- mprf("To-hit: %d", to_hit);
-#endif
// magic resistance
const int mr = player_res_magic();