From 2d910749bdbcbbb440daaf0af608ae65c8af70fb Mon Sep 17 00:00:00 2001 From: pauldubois Date: Sat, 8 Mar 2008 06:40:21 +0000 Subject: Fix compile in debug git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3538 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/player.cc') 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(); -- cgit v1.2.3-54-g00ecf