Clear gear message in AnimSwitchHog
authorWuzzy <Wuzzy2@mail.ru>
Wed, 16 Jan 2019 06:37:26 +0100
changeset 14626 153c12b9051b
parent 14625 ce315bb8b59d
child 14627 db163acf53d1
Clear gear message in AnimSwitchHog
share/hedgewars/Data/Scripts/Animate.lua
--- a/share/hedgewars/Data/Scripts/Animate.lua	Wed Jan 16 06:24:50 2019 +0100
+++ b/share/hedgewars/Data/Scripts/Animate.lua	Wed Jan 16 06:37:26 2019 +0100
@@ -102,8 +102,7 @@
 end
 
 function AnimSwitchHog(gear)
-  --SetGearMessage(gear, 0)
-  --SetState(gear, 0)
+  SetGearMessage(gear, band(GetGearMessage(gear), bnot(gmAllStoppable)))
   SwitchHog(gear)
   FollowGear(gear)
   return true