Clear gmSwitch before activating switcher
authorWuzzy <Wuzzy2@mail.ru>
Wed, 19 Sep 2018 09:31:06 +0200
changeset 13825 096cc009e0b8
parent 13824 552f0d5ab3e7
child 13826 5d46b4fae757
Clear gmSwitch before activating switcher If if you pressed [Switch Hedgehog] key and THEN enabled the Switch Hedgehog utility, you immediately switch. This was mildly confusing.
hedgewars/uGearsHandlersMess.pas
--- a/hedgewars/uGearsHandlersMess.pas	Tue Sep 18 19:38:58 2018 -0400
+++ b/hedgewars/uGearsHandlersMess.pas	Wed Sep 19 09:31:06 2018 +0200
@@ -3268,7 +3268,7 @@
     with HHGear^ do
         begin
         State := State and (not gstAttacking);
-        Message := Message and (not gmAttack)
+        Message := Message and (not (gmAttack or gmSwitch))
         end
 end;