share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua
changeset 13630 fe7d2bbf5f3f
parent 13583 141cdfe0f3ca
child 13664 85506d95977d
--- a/share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua	Tue Aug 07 12:15:59 2018 +0200
+++ b/share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua	Tue Aug 07 13:04:02 2018 +0200
@@ -55,10 +55,13 @@
 	SendHealthStatsOff()
 end
 
-function onGearResurrect(gear)
+function onGearResurrect(gear, vGear)
 	if gear == hog then
 		flawless = false
 		SetGearPosition(hog, 1485, 2001)
+		if vGear then
+			SetVisualGearValues(vGear, GetX(hog), GetY(hog))
+		end
 		AddCaption(loc("Your hedgehog has been revived!"))
 	end
 end