summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-31 07:28:37 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-31 07:28:37 +0000
commit19f993c7183042c4666569fce41f7dbf39a61522 (patch)
treefbe15aef8b40df555dc62300a0f69e97a3cbc016 /crawl-ref/source
parent58bb44d35fd7b24c377895aabcb33ef5f201a978 (diff)
downloadcrawl-ref-19f993c7183042c4666569fce41f7dbf39a61522.tar.gz
crawl-ref-19f993c7183042c4666569fce41f7dbf39a61522.zip
Added show_turns option to control turn counter display.
Also documented morgue_dir (thanks, David). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@750 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/externs.h2
-rw-r--r--crawl-ref/source/initfile.cc6
-rw-r--r--crawl-ref/source/output.cc6
-rw-r--r--crawl-ref/source/view.cc6
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()