From 725cb5b4d5a3ade5c5e7b04a6210cedc839c2bdd Mon Sep 17 00:00:00 2001 From: zelgadis Date: Wed, 19 Sep 2007 01:19:56 +0000 Subject: Added new commands "re-do previous command" (bound to `) and "repeat next command" (bound to 0). Though this is just an interface change, it changes code in the core input processing function (input() in acr.cc), and also messes around with the input buffer, so it could probably do with more testing before merging it into the 0.3 branch. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2137 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/it_use3.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/it_use3.cc') diff --git a/crawl-ref/source/it_use3.cc b/crawl-ref/source/it_use3.cc index 417fd7f2d7..ac3c5f10e5 100644 --- a/crawl-ref/source/it_use3.cc +++ b/crawl-ref/source/it_use3.cc @@ -49,6 +49,7 @@ #include "spl-book.h" #include "spl-cast.h" #include "spl-util.h" +#include "state.h" #include "stuff.h" #include "view.h" @@ -379,6 +380,7 @@ bool evoke_wielded( void ) else if (wield == -1) { mpr("You aren't wielding anything!"); + crawl_state.zero_turns_taken(); return (false); } @@ -708,6 +710,8 @@ bool evoke_wielded( void ) if (!unevokable) you.turn_is_over = true; + else + crawl_state.zero_turns_taken(); return (did_work); } // end evoke_wielded() -- cgit v1.2.3-54-g00ecf