hedgewars/uInputHandler.pas
changeset 14900 d4a19bf6687e
parent 14899 5a6da39c5f2a
child 14901 63357ed39886
--- a/hedgewars/uInputHandler.pas	Tue May 07 13:15:00 2019 +0200
+++ b/hedgewars/uInputHandler.pas	Tue May 07 13:56:11 2019 +0200
@@ -246,7 +246,10 @@
         if CurrentBinds.binds[CurrentBinds.indices[code]] = 'switch' then
             LocalMessage:= LocalMessage or gmSwitch
         else if CurrentBinds.binds[CurrentBinds.indices[code]] = '+precise' then
+            begin
             LocalMessage:= LocalMessage or gmPrecise;
+            updateVolumeDelta(true);
+            end;
 
         ParseCommand(CurrentBinds.binds[CurrentBinds.indices[code]], Trusted);
         if (CurrentTeam <> nil) and (not CurrentTeam^.ExtDriven) and (ReadyTimeLeft > 1) then
@@ -255,7 +258,10 @@
     else if (CurrentBinds.binds[CurrentBinds.indices[code]][1] = '+') then
         begin
         if CurrentBinds.binds[CurrentBinds.indices[code]] = '+precise' then
+            begin
             LocalMessage:= LocalMessage and (not gmPrecise);
+            updateVolumeDelta(false);
+            end;
         s:= CurrentBinds.binds[CurrentBinds.indices[code]];
         s[1]:= '-';
         ParseCommand(s, Trusted);