From ab138e22e1d27e8e5ee28b6469b43f756f1b3150 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Mon, 4 Jun 2007 14:20:34 +0000 Subject: Fixed turn-loss during travel: - Interlevel travel was losing one turn when taking stairs. - Greedy explore was losing one turn when picking up items. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1534 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/delay.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc index 366ced7327..7f30600d45 100644 --- a/crawl-ref/source/delay.cc +++ b/crawl-ref/source/delay.cc @@ -811,7 +811,7 @@ static void handle_run_delays(const delay_queue_item &delay) return; } - if ( you.turn_is_over ) + if (you.turn_is_over) return; command_type cmd = CMD_NO_CMD; @@ -841,6 +841,12 @@ static void handle_run_delays(const delay_queue_item &delay) pop_delay(); update_turn_count(); } + + if (you.running && !you.turn_is_over + && !is_run_delay(current_delay_action())) + { + handle_delay(); + } } static void handle_macro_delay() -- cgit v1.2.3-54-g00ecf