summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-04 06:36:16 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-04 06:36:16 +0000
commit73cb8204c4e2e9359f5bf4e16992bfce86f1f97d (patch)
tree3a206ab15ac653f764aa402b161162440a1e2427 /crawl-ref/source/acr.cc
parentdc0154464f655ed489c13d192eee0ae531b9b51e (diff)
downloadcrawl-ref-73cb8204c4e2e9359f5bf4e16992bfce86f1f97d.tar.gz
crawl-ref-73cb8204c4e2e9359f5bf4e16992bfce86f1f97d.zip
Wizard commands should never use up a turn.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2317 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index d78a720368..89ba2ed09d 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -738,7 +738,7 @@ static void handle_wizard_command( void )
if (cancelable_get_line( specs, sizeof( specs ) ))
{
canned_msg( MSG_OK );
- return;
+ break;
}
std::string dst = specs;
@@ -753,7 +753,7 @@ static void handle_wizard_command( void )
{
mprf("No map named '%s' or tagged '%s'.",
dst.c_str(), dst.c_str());
- return;
+ break;
}
grd[you.x_pos][you.y_pos] = DNGN_ENTER_PORTAL_VAULT;
@@ -1007,6 +1007,7 @@ static void handle_wizard_command( void )
formatted_mpr(formatted_string::parse_string("Not a <magenta>Wizard</magenta> Command."));
break;
}
+ you.turn_is_over = false;
}
#endif