share/hedgewars/Data/Missions/Training/Basic_Training_-_Rope.lua
changeset 13630 fe7d2bbf5f3f
parent 13583 141cdfe0f3ca
child 13664 85506d95977d
--- 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