From a291e99809652bb3308f08d777bafb134328d835 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 26 Jun 2008 15:08:48 +0000 Subject: Disallow quivering equipped items. (You can still (fi)re your wielded weapon if you insist, you just can't quiver it.) And another general clean-up. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6149 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/delay.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/delay.cc') diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc index 52d5dac604..174da7e550 100644 --- a/crawl-ref/source/delay.cc +++ b/crawl-ref/source/delay.cc @@ -1264,7 +1264,7 @@ static void _armour_wear_effects(const int item_slot) if (you.duration[DUR_ICY_ARMOUR] != 0) { mpr( "Your icy armour melts away.", MSGCH_DURATION ); - you.redraw_armour_class = 1; + you.redraw_armour_class = true; you.duration[DUR_ICY_ARMOUR] = 0; } } @@ -1344,7 +1344,7 @@ static void _armour_wear_effects(const int item_slot) case SPARM_PONDEROUSNESS: mpr("You feel rather ponderous."); // you.speed += 2; - you.redraw_evasion = 1; + you.redraw_evasion = true; break; case SPARM_LEVITATION: @@ -1408,12 +1408,13 @@ static void _armour_wear_effects(const int item_slot) static command_type _get_running_command() { - if ( kbhit() ) + if (kbhit()) { stop_running(); return CMD_NO_CMD; } - if ( is_resting() ) + + if (is_resting()) { you.running.rest(); if (!is_resting() && you.running.hp == you.hp @@ -1424,9 +1425,7 @@ static command_type _get_running_command() return CMD_MOVE_NOWHERE; } else if (Options.travel_delay > 0) - { delay(Options.travel_delay); - } return direction_to_command( you.running.x, you.running.y ); } -- cgit v1.2.3-54-g00ecf