share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua
changeset 12519 d89dabfd07ce
parent 12518 d90db45a0c4f
child 12520 2df340544f25
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Mon Sep 25 17:06:35 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Mon Sep 25 18:02:35 2017 +0200
@@ -251,7 +251,7 @@
 
 function onNewTurn()
 	if CurrentHedgehog == director.gear or CurrentHedgehog == doctor.gear then
-		TurnTimeLeft = 0
+		EndTurn(true)
 	end
 	if guard1.keepTurning then
 		AnimSwitchHog(hero.gear)
@@ -350,7 +350,7 @@
 end
 
 function heroAtSaucerPosition(gear)
-	TurnTimeLeft = 0
+	EndTurn(true)
 	-- save check point
 	SaveCampaignVar("CosmosCheckPoint", "2")
 	checkPointReached = 2
@@ -606,7 +606,7 @@
 function startCombat()
 	-- use this so guard2 will gain control
 	AnimSwitchHog(hero.gear)
-	TurnTimeLeft = 0
+	EndTurn(true)
 end
 
 function sendStats(planetMsg)