# HG changeset patch
# User Wuzzy <almikes@aol.com>
# Date 1479962121 -3600
# Node ID 5beaf30c1cef5765c9cd15857f53de89ff14cea1
# Parent  3ffb261af4e813e1cbb438563622f5c7b50b5e31
Turn invaders white in Space Invasion when round is over

diff -r 3ffb261af4e8 -r 5beaf30c1cef share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Thu Nov 24 05:08:04 2016 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Thu Nov 24 05:35:21 2016 +0100
@@ -1476,6 +1476,7 @@
 				rightOn = false
 				SetMyCircles(false)
 				rAlpha = 255
+				FailGraphics()
 				--nw WriteLnToConsole("Player is out of luck")
 
 				if shieldMiser == true then
@@ -2043,12 +2044,20 @@
 
 	playerIsFine = false
 	AddCaption(loc("GOTCHA!"))
+	FailGraphics()
 	PlaySound(sndHellish)
 
 	targetHit = true
 
 end
 
+-- Turn all circles white to indicate they can't be hit anymore
+function FailGraphics()
+	for i = 0,(vCCount-1) do
+		vCircCol[i] = 0xffffffff
+	end
+end
+
 --- collision detection for weapons fire
 function CheckVarious(gear)