summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-25 08:25:40 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-25 08:25:40 +0000
commitda6f22d94813d67bd9481c74d0a67a63d85870f2 (patch)
tree0b1c6909eca2c851845b98fc05e4f89acd0ab2d7 /crawl-ref/source
parent155664a085bec03623dd497c611111e54766d305 (diff)
downloadcrawl-ref-da6f22d94813d67bd9481c74d0a67a63d85870f2.tar.gz
crawl-ref-da6f22d94813d67bd9481c74d0a67a63d85870f2.zip
Slight improvement to repeating mutation command.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2200 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/debug.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/debug.cc b/crawl-ref/source/debug.cc
index 2a953f7782..b98bdab14f 100644
--- a/crawl-ref/source/debug.cc
+++ b/crawl-ref/source/debug.cc
@@ -1651,7 +1651,8 @@ bool debug_add_mutation(void)
return (false);
}
- if (you.mutation[MUT_MUTATION_RESISTANCE] > 0)
+ if (you.mutation[MUT_MUTATION_RESISTANCE] > 0 &&
+ !crawl_state.is_replaying_keys())
{
const char* msg;
@@ -1664,7 +1665,6 @@ bool debug_add_mutation(void)
{
you.mutation[MUT_MUTATION_RESISTANCE] = 0;
crawl_state.cancel_cmd_repeat();
- crawl_state.cancel_cmd_again();
}
}