summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/wiz-you.cc
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2009-12-26 17:01:08 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2009-12-26 17:14:32 +0100
commitb1ede8b9a0b8200538147f8031f6ed8b4f9de8c8 (patch)
tree503157a786377cb93ee84cea8f4dc2bfd87e8ec2 /crawl-ref/source/wiz-you.cc
parent4a400aebb95684b1bd34e4ba3bad609548ff6671 (diff)
downloadcrawl-ref-b1ede8b9a0b8200538147f8031f6ed8b4f9de8c8.tar.gz
crawl-ref-b1ede8b9a0b8200538147f8031f6ed8b4f9de8c8.zip
Add default answer 'n' to several instances of yesno().
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 ) );