diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-12-30 07:00:01 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-12-30 07:00:01 +0000 |
commit | bc21b45fa2e431dab77fe02741769061a6fcb9e4 (patch) | |
tree | a37873913323aa264e23fea273cf560e19af13e5 /crawl-ref/source/delay.cc | |
parent | 9f10a66a73b3fe9ec1e575897acc4c03d90e98fe (diff) | |
download | crawl-ref-bc21b45fa2e431dab77fe02741769061a6fcb9e4.tar.gz crawl-ref-bc21b45fa2e431dab77fe02741769061a6fcb9e4.zip |
[1624529] Added display of turns used in main play screen. Zero-based, which
may seem odd to some players, but I like it.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@735 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/delay.cc')
-rw-r--r-- | crawl-ref/source/delay.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc index 659a1b76a5..f48947e93f 100644 --- a/crawl-ref/source/delay.cc +++ b/crawl-ref/source/delay.cc @@ -227,6 +227,9 @@ void stop_delay( void ) default: break; } + + if (is_run_delay(delay.type)) + update_turn_count(); } bool you_are_delayed( void ) @@ -760,6 +763,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; } @@ -790,7 +794,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() |