diff options
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/externs.h | 2 | ||||
-rw-r--r-- | crawl-ref/source/initfile.cc | 6 | ||||
-rw-r--r-- | crawl-ref/source/output.cc | 6 | ||||
-rw-r--r-- | crawl-ref/source/view.cc | 6 |
4 files changed, 18 insertions, 2 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index bd467f20e2..61e07b0787 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -796,6 +796,8 @@ public: bool autoprayer_on; bool fizzlecheck_on; + bool show_turns; // Show turns used in HUD. + long autopickups; // items to autopickup bool verbose_dump; // make character dumps contain more detail bool detailed_stat_dump; // add detailed stat and resist dump diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 9fb464ce70..0b3c032e6d 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -534,6 +534,8 @@ void game_options::reset_options() autoprayer_on = false; fizzlecheck_on = false; + show_turns = true; + prev_race = 0; prev_cls = 0; prev_ck = GOD_NO_GOD; @@ -1617,6 +1619,10 @@ void game_options::read_option_line(const std::string &str, bool runscript) save_dir = field; #endif } + else if (key == "show_turns") + { + show_turns = read_bool( field, show_turns ); + } else if (key == "morgue_dir") { if (morgue_dir.empty()) diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index 4ab715cfa4..2c544fb544 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -62,8 +62,12 @@ 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)) + if (!Options.show_turns + || 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 diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index 8010d78673..8d046bb608 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -1666,7 +1666,11 @@ void draw_border(void) gotoxy(40, 8); cprintf("Int:"); gotoxy(40, 9); cprintf("Dex:"); gotoxy(40, 10); cprintf("Gold:"); - gotoxy(55, 10); cprintf("Turn:"); + if (Options.show_turns) + { + gotoxy(55, 10); + cprintf("Turn:"); + } gotoxy(40, 11); cprintf("Experience:"); gotoxy(40, 12); cprintf("Level"); } // end draw_border() |