Fixed bug in mission 5 with invisible obstacles
authorbelphegorr <szabibibi@gmail.com>
Sat, 18 Aug 2012 12:22:35 +0300
changeset 7466 5cb1b21b3176
parent 7463 bd5c7b8db666
child 7469 003b7384a90a
Fixed bug in mission 5 with invisible obstacles
share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/backstab.lua
--- a/share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/backstab.lua	Sat Aug 18 12:17:26 2012 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/backstab.lua	Sat Aug 18 12:22:35 2012 +0300
@@ -806,6 +806,7 @@
   for i = (index - 1) * 3 + 1, index * 3 do
     if cannibalHidden[i] == true then
       RestoreHog(cannibals[i])
+      AnimSetGearPosition(cannibals[i], unpack(cannibalPos[i]))
       FollowGear(cannibals[i])
       cannibalHidden[i] = false
     end
@@ -922,7 +923,7 @@
   AnimSetGearPosition(cyborg, 0, 0)
 
   for i = 1, 9 do
-    AnimSetGearPosition(cannibals[i], unpack(cannibalPos[i]))
+    AnimSetGearPosition(cannibals[i], cannibalPos[i][1], cannibalPos[i][2] + 40)
     AnimTurn(cannibals[i], cannibalDir[i])
   end
 end