hedgewars/uInputHandler.pas
branchqmlfrontend
changeset 10515 7705784902e1
parent 10434 1614b13ad35e
parent 10510 9329dab04490
child 11071 3851ce4f2061
equal deleted inserted replaced
10458:f7a199346c3e 10515:7705784902e1
   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
   174         Trusted:= Trusted and (not isPaused); //releasing keys during pause should be allowed on the other hand
   175                               
   175 
   176         if CurrentBinds[code] = 'switch' then
   176         if CurrentBinds[code] = 'switch' then
   177             LocalMessage:= LocalMessage or gmSwitch
   177             LocalMessage:= LocalMessage or gmSwitch
   178         else if CurrentBinds[code] = '+precise' then
   178         else if CurrentBinds[code] = '+precise' then
   179             LocalMessage:= LocalMessage or gmPrecise;
   179             LocalMessage:= LocalMessage or gmPrecise;
   180 
   180