--- a/share/hedgewars/Data/Missions/Training/Basic_Training_-_Rope.lua Tue Aug 07 12:15:59 2018 +0200
+++ b/share/hedgewars/Data/Missions/Training/Basic_Training_-_Rope.lua Tue Aug 07 13:04:02 2018 +0200
@@ -267,10 +267,13 @@
end
end
-function onGearResurrect(gear)
+function onGearResurrect(gear, vGear)
-- Teleport hog to previous checkpoint
if gear == hog then
SetGearPosition(hog, cpX, cpY)
+ if vGear then
+ SetVisualGearValues(vGear, GetX(hog), GetY(hog))
+ end
FollowGear(hog)
AddCaption(loc("Your hedgehog has been revived!"))
if isInMineChallenge then