CTF: Don't disable home flag after capture
authorWuzzy <Wuzzy2@mail.ru>
Thu, 08 Mar 2018 13:42:36 +0100
changeset 13112 714f6e5b89fd
parent 13111 10c914738f22
child 13113 75afd374b764
CTF: Don't disable home flag after capture
share/hedgewars/Data/Scripts/Multiplayer/Capture_the_Flag.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Capture_the_Flag.lua	Thu Mar 08 13:34:45 2018 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Capture_the_Flag.lua	Thu Mar 08 13:42:36 2018 +0100
@@ -172,11 +172,6 @@
 	-- player has successfully captured the enemy flag
 	if (GetHogClan(CurrentHedgehog) == flagClan) and (thiefClan ~= nil) and (fIsMissing[flagClan] == false) then
 
-		DeleteVisualGear(fGear[flagClan])
-		fGear[flagClan] = nil -- the flag has now disappeared
-
-		fIsMissing[flagClan] = false
-		fNeedsRespawn[flagClan] = true
 		fIsMissing[thiefClan] = false
 		fNeedsRespawn[thiefClan] = true
 		fCaptures[flagClan] = fCaptures[flagClan] +1