From b088f97f19f163d2ccdf9da9b37866e1f368976e Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sun, 5 Aug 2007 01:58:03 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1190 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/weapon.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/src/weapon.cpp b/source/src/weapon.cpp index 2633e523..1f8f06a7 100644 --- a/source/src/weapon.cpp +++ b/source/src/weapon.cpp @@ -47,6 +47,7 @@ void weaponswitch(int gun) { player1->weaponchanging = true; player1->thrownademillis = 0; + if(player1->gunwait) player1->gunwait = max(player1->gunwait - (lastmillis-player1->lastaction), 0); player1->lastaction = player1->akimbolastaction[0] = player1->akimbolastaction[1] = lastmillis; player1->nextweapon = gun; playsound(S_GUNCHANGE);