hedgewars/uInputHandler.pas
changeset 10392 5012e1f9e893
parent 10139 9046f69dae4c
child 10434 1614b13ad35e
child 10510 9329dab04490
equal deleted inserted replaced
10391:ce3ccc45d790 10392:5012e1f9e893
   169 if CurrentBinds[code][0] <> #0 then
   169 if CurrentBinds[code][0] <> #0 then
   170     begin
   170     begin
   171     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;
   171     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;
   172     if KeyDown then
   172     if KeyDown then
   173         begin
   173         begin
       
   174         Trusted:= Trusted and (not isPaused); //releasing keys during pause should be allowed on the other hand
       
   175                               
   174         if CurrentBinds[code] = 'switch' then
   176         if CurrentBinds[code] = 'switch' then
   175             LocalMessage:= LocalMessage or gmSwitch
   177             LocalMessage:= LocalMessage or gmSwitch
   176         else if CurrentBinds[code] = '+precise' then
   178         else if CurrentBinds[code] = '+precise' then
   177             LocalMessage:= LocalMessage or gmPrecise;
   179             LocalMessage:= LocalMessage or gmPrecise;
   178 
   180