share/hedgewars/Data/Scripts/Animate.lua
changeset 9245 1dfdf35dd35d
parent 7448 d0521a3a4358
child 12084 ccab0d396a7f
equal deleted inserted replaced
9243:d8f6a396d98e 9245:1dfdf35dd35d
   306   if steps[animPos].args[1] ~= CurrentHedgehog and steps[animPos].func ~= AnimWait 
   306   if steps[animPos].args[1] ~= CurrentHedgehog and steps[animPos].func ~= AnimWait 
   307     and (steps[animPos].swh == nil or steps[animPos].swh == true) then
   307     and (steps[animPos].swh == nil or steps[animPos].swh == true) then
   308       AnimSwitchHog(steps[animPos].args[1])
   308       AnimSwitchHog(steps[animPos].args[1])
   309   end
   309   end
   310 
   310 
   311   SetInputMask(band(0xFFFFFFFF, bnot(gmAnimate+gmAttack+gmDown+gmHJump+gmLeft+gmLJump+gmRight+gmSlot+gmSwitch+gmTimer+gmUp+gmWeapon)))
   311   SetInputMask(bnot(gmAnimate+gmAttack+gmDown+gmHJump+gmLeft+gmLJump+gmRight+gmSlot+gmSwitch+gmTimer+gmUp+gmWeapon))
   312   retVal = steps[animPos].func(unpack(steps[animPos].args))
   312   retVal = steps[animPos].func(unpack(steps[animPos].args))
   313   if (retVal ~= false) then
   313   if (retVal ~= false) then
   314     animPos = animPos + 1
   314     animPos = animPos + 1
   315   end
   315   end
   316 
   316