# HG changeset patch # User Wuzzy # Date 1479387912 -3600 # Node ID 930f57e70b49dc61ddf592b1630a30bf4fc4bad7 # Parent 46a65decb28766d9d4708741a2bbd3c5afb70a8b Capture The Flag: Fix flag of first team spawning at second hog (issue #9) diff -r 46a65decb287 -r 930f57e70b49 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