From 73cb8204c4e2e9359f5bf4e16992bfce86f1f97d Mon Sep 17 00:00:00 2001 From: zelgadis Date: Thu, 4 Oct 2007 06:36:16 +0000 Subject: 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 --- crawl-ref/source/acr.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/acr.cc') 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 Wizard Command.")); break; } + you.turn_is_over = false; } #endif -- cgit v1.2.3-54-g00ecf