share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua
changeset 7144 6e3974128631
parent 7135 4d863aadd0b2
child 7229 c34516ec0f27
--- a/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Mon May 28 14:11:50 2012 -0400
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Mon May 28 14:20:51 2012 -0400
@@ -235,7 +235,6 @@
 -- some console stuff
 local shellID = 0
 local explosivesID = 0
-local luaGameTicks = 0
 
 -- gaudyRacer
 local boosterOn = false
@@ -351,7 +350,6 @@
 local rCircX = {}
 local rCircY = {}
 local rAlpha = 255
-local rPingTimer = 0
 local radShotsLeft = 0
 
 local vCircActive = {}
@@ -1159,7 +1157,6 @@
 
 
 	--WriteLnToConsole("Start of GameTick")
-	luaGameTicks = luaGameTicks + 1 -- GameTime
 
 	HandleCircles()
 
@@ -2132,9 +2129,7 @@
 
 	if rAlpha ~= 255 then
 
-		rPingTimer = rPingTimer + 1
-		if rPingTimer == 100 then
-			rPingTimer = 0
+		if GameTime%100 == 0 then
 
 			rAlpha = rAlpha + 5
 			if rAlpha >= 255 then