wops add this too
authorXeli
Wed, 23 May 2012 21:19:15 +0200
changeset 7118 dcdbb6fcc924
parent 7117 7df6386f7090
child 7119 2737c488756b
wops add this too
hedgewars/uInputHandler.pas
--- a/hedgewars/uInputHandler.pas	Wed May 23 21:16:44 2012 +0200
+++ b/hedgewars/uInputHandler.pas	Wed May 23 21:19:15 2012 +0200
@@ -84,7 +84,8 @@
 
 if CurrentBinds[code][0] <> #0 then
     begin
-    if (code > 3) and (tkbd[code] <> 0) and not ((CurrentBinds[code] = 'put') or (CurrentBinds[code] = 'ammomenu') or (CurrentBinds[code] = '+cur_u') or (CurrentBinds[code] = '+cur_d') or (CurrentBinds[code] = '+cur_l') or (CurrentBinds[code] = '+cur_r')) then hideAmmoMenu:= true;
+    if (code > 3) and (KeyDown) and not ((CurrentBinds[code] = 'put') or (CurrentBinds[code] = 'ammomenu') or (CurrentBinds[code] = '+cur_u') or (CurrentBinds[code] = '+cur_d') or (CurrentBinds[code] = '+cur_l') or (CurrentBinds[code] = '+cur_r')) then hideAmmoMenu:= true;
+
     if (KeyDown) then
         begin
         ParseCommand(CurrentBinds[code], Trusted);