share/hedgewars/Data/Missions/Training/Basic_Training_-_Flying_Saucer.lua
changeset 13630 fe7d2bbf5f3f
parent 13594 ddd90e92c4c3
child 13643 690cc84e9fd6
--- a/share/hedgewars/Data/Missions/Training/Basic_Training_-_Flying_Saucer.lua	Tue Aug 07 12:15:59 2018 +0200
+++ b/share/hedgewars/Data/Missions/Training/Basic_Training_-_Flying_Saucer.lua	Tue Aug 07 13:04:02 2018 +0200
@@ -549,10 +549,13 @@
 	end
 end
 
-function onGearResurrect(Gear)
+function onGearResurrect(Gear, VGear)
 	if Gear == Player then
 		AddCaption(loc("Oh no! You have died. Try again!"), 0xFFFFFFFF, capgrpMessage2)
 		ResetCurrentTarget()
+		if VGear then
+			SetVisualGearValues(VGear, GetX(Gear), GetY(Gear))
+		end
 	end
 end