share/hedgewars/Data/Scripts/Animate.lua
changeset 14610 153c12b9051b
parent 14236 74bf2d906097
child 14630 835072bcbfb6
--- 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