Capture The Flag: Fix flag of first team spawning at second hog (issue #9)
authorWuzzy <almikes@aol.com>
Thu, 17 Nov 2016 14:05:12 +0100
changeset 11904 930f57e70b49
parent 11903 46a65decb287
child 11905 71ebc4c19b7f
Capture The Flag: Fix flag of first team spawning at second hog (issue #9)
share/hedgewars/Data/Scripts/Multiplayer/Capture_the_Flag.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Capture_the_Flag.lua	Thu Nov 17 03:47:28 2016 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Capture_the_Flag.lua	Thu Nov 17 14:05:12 2016 +0100
@@ -544,8 +544,10 @@
 			i = 1
 		end
 
-		fSpawnX[i] = GetX(CurrentHedgehog)
-		fSpawnY[i] = GetY(CurrentHedgehog)
+		if TurnTimeLeft == 0 then
+			fSpawnX[i] = GetX(CurrentHedgehog)
+			fSpawnY[i] = GetY(CurrentHedgehog)
+		end
 
 	end