diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-19 12:25:55 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-19 12:25:55 +1000 |
commit | 2f0795cae1e8dbca3f275964db82678acdcc4bde (patch) | |
tree | ae9bf51276316dae82a7a4f7311a77a002e3dcdd /crawl-ref/source/main.cc | |
parent | 66c12d383ec34cec82df7e6f83dc5d69ee5b24c9 (diff) | |
download | crawl-ref-2f0795cae1e8dbca3f275964db82678acdcc4bde.tar.gz crawl-ref-2f0795cae1e8dbca3f275964db82678acdcc4bde.zip |
Prompt before auto-exploring the Labyrinth.
The wording may require work. I'm not sure if this is acceptable, but
the reasoning is that hitting 'o' by accident in the Labyrinth,
especially when you have travel_delay = -1, can take you from just near
the exit to miles away, and you have to start all over again.
There are instances where auto-explore may be useful in the Labyrinth,
so don't outright disable it.
Diffstat (limited to 'crawl-ref/source/main.cc')
-rw-r--r-- | crawl-ref/source/main.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/main.cc b/crawl-ref/source/main.cc index 29f262bfc7..ea2cab6d01 100644 --- a/crawl-ref/source/main.cc +++ b/crawl-ref/source/main.cc @@ -1876,6 +1876,14 @@ void process_command( command_type cmd ) mpr("You need to eat something NOW!"); break; } + else if (you.level_type == LEVEL_LABYRINTH) + { + if (!yesno("You will probably just end up going in circles. Are you" + " sure you wish to explore this labyrinth?", false, 'n')) + { + break; + } + } // Start exploring start_explore(Options.explore_greedy); break; |