diff options
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r-- | crawl-ref/source/output.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index a742add6e2..4ab715cfa4 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -58,6 +58,23 @@ static void dur_colour( int colour, bool running_out ) } } +void update_turn_count() +{ + // Don't update turn counter when running/resting/traveling to + // prevent pointless screen updates. + if (you.running > 0 || (you.running < 0 && Options.travel_delay == -1)) + return; + + // FIXME: Create some kind of layout manager class so we can + // templatise the heads-up display layout and stop hardcoding + // these coords. + gotoxy(61, 10); + textcolor(LIGHTGREY); + + // Show the turn count starting from 1. You can still quit on turn 0. + cprintf("%ld", you.num_turns); +} + void print_stats(void) { textcolor(LIGHTGREY); |