diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-10 20:02:26 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-10 20:24:30 -0800 |
commit | 401c228a8c9fbbf99ab8309f337e0ea9896c3769 (patch) | |
tree | f8af4f90a178f8ecb4006cdd10b2cfdae1b0e409 /crawl-ref/source/misc.cc | |
parent | d209dced6edfec770b03610e54a2836fb2bc0f30 (diff) | |
download | crawl-ref-401c228a8c9fbbf99ab8309f337e0ea9896c3769.tar.gz crawl-ref-401c228a8c9fbbf99ab8309f337e0ea9896c3769.zip |
misc.cc: Extra leave-dungeon prompt in tutorial
During tutorial mode, ask a second time if the player is *sure* they
want to leave the dungeon.
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r-- | crawl-ref/source/misc.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index cf5edf04c4..0c4d997d89 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -1842,6 +1842,15 @@ void up_stairs(dungeon_feature_type force_stair, && (!yesno("Are you sure you want to leave the Dungeon?", false, 'n') || !_check_carrying_orb())) { + if (Options.tutorial_left) + { + if (!yesno("Are you *sure*? Doing so will end the game!", false, + 'n')) + { + mpr("Alright."); + return; + } + } mpr("Alright, then stay!"); return; } |