hedgewars/uInputHandler.pas
changeset 10392 5012e1f9e893
parent 10139 9046f69dae4c
child 10434 1614b13ad35e
child 10510 9329dab04490
--- a/hedgewars/uInputHandler.pas	Fri Aug 22 00:37:26 2014 +0400
+++ b/hedgewars/uInputHandler.pas	Fri Aug 22 00:57:07 2014 +0400
@@ -171,6 +171,8 @@
     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')) and (CurrentTeam <> nil) and (not CurrentTeam^.ExtDriven) then bShowAmmoMenu:= false;
     if KeyDown then
         begin
+        Trusted:= Trusted and (not isPaused); //releasing keys during pause should be allowed on the other hand
+                              
         if CurrentBinds[code] = 'switch' then
             LocalMessage:= LocalMessage or gmSwitch
         else if CurrentBinds[code] = '+precise' then