share/hedgewars/Data/Missions/Training/Basic_Training_-_Movement.lua
changeset 13630 fe7d2bbf5f3f
parent 13583 141cdfe0f3ca
child 13664 85506d95977d
--- a/share/hedgewars/Data/Missions/Training/Basic_Training_-_Movement.lua	Tue Aug 07 12:15:59 2018 +0200
+++ b/share/hedgewars/Data/Missions/Training/Basic_Training_-_Movement.lua	Tue Aug 07 13:04:02 2018 +0200
@@ -399,7 +399,7 @@
 	end
 end
 
-function onGearResurrect(gear)
+function onGearResurrect(gear, vGear)
 	AddCaption(loc("Your hedgehog has been revived!"))
 	if gear == hog_cappy then
 		SetGearPosition(gear, 404, 1714)
@@ -409,6 +409,9 @@
 		-- Generic teleport to Rhombus' cage
 		SetGearPosition(gear, 619, 1559)
 	end
+	if vGear then
+		SetVisualGearValues(vGear, GetX(gear), GetY(gear))
+	end
 	FollowGear(gear)
 end