summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/delay.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-30 09:01:17 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-30 09:01:17 +0000
commit82c469a3a5b523c0b82229d289b122e3868324cc (patch)
tree06c7615573a9a8db55629f0366ee844085602152 /crawl-ref/source/delay.cc
parent524b125dfb44eea7a068ccb01d9935be528840d5 (diff)
downloadcrawl-ref-82c469a3a5b523c0b82229d289b122e3868324cc.tar.gz
crawl-ref-82c469a3a5b523c0b82229d289b122e3868324cc.zip
0.1.7 backport:
* GOD_GIFT was not set for TSO and Zin minions. * Turn counter display. * New temple levels. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.1.7@738 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/delay.cc')
-rw-r--r--crawl-ref/source/delay.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc
index 0d354cf287..ae2c75a3aa 100644
--- a/crawl-ref/source/delay.cc
+++ b/crawl-ref/source/delay.cc
@@ -215,6 +215,9 @@ void stop_delay( void )
default:
break;
}
+
+ if (is_run_delay(delay.type))
+ update_turn_count();
}
bool you_are_delayed( void )
@@ -741,6 +744,7 @@ static void handle_run_delays(const delay_queue_item &delay)
// We don't want to send the game into a deadlock.
if (!you.running)
{
+ update_turn_count();
pop_delay();
return;
}
@@ -769,7 +773,10 @@ static void handle_run_delays(const delay_queue_item &delay)
// removed, remove it now. This is needed to clean up after
// find_travel_pos() function in travel.cc.
if (!you.running && is_run_delay(current_delay_action()))
+ {
pop_delay();
+ update_turn_count();
+ }
}
static void handle_macro_delay()