summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/wiz-you.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/wiz-you.cc')
-rw-r--r--crawl-ref/source/wiz-you.cc16
1 files changed, 14 insertions, 2 deletions
diff --git a/crawl-ref/source/wiz-you.cc b/crawl-ref/source/wiz-you.cc
index cf570e928f..dfc4d32fbb 100644
--- a/crawl-ref/source/wiz-you.cc
+++ b/crawl-ref/source/wiz-you.cc
@@ -454,7 +454,13 @@ bool wizard_add_mutation()
}
}
- bool force = yesno("Force mutation to happen?", true, 'n');
+ int answer = yesnoquit("Force mutation to happen?", true, 'n');
+ if (answer == -1)
+ {
+ canned_msg(MSG_OK);
+ return (false);
+ }
+ const bool force = (answer == 1);
if (player_mutation_level(MUT_MUTATION_RESISTANCE) == 3 && !force)
{
@@ -463,7 +469,13 @@ bool wizard_add_mutation()
return (false);
}
- bool god_gift = yesno("Treat mutation as god gift?", true, 'n');
+ answer = yesnoquit("Treat mutation as god gift?", true, 'n');
+ if (answer == -1)
+ {
+ canned_msg(MSG_OK);
+ return (false);
+ }
+ const bool god_gift = (answer == 1);
mpr("Which mutation (name, 'good', 'bad', 'any', 'xom')? ", MSGCH_PROMPT);
get_input_line( specs, sizeof( specs ) );