share/hedgewars/Data/Maps/Control/map.lua
changeset 13692 a8b2a5e7e9db
parent 13635 fe7d2bbf5f3f
child 13745 2bb7141496a9
--- a/share/hedgewars/Data/Maps/Control/map.lua	Tue Aug 21 22:57:56 2018 +0200
+++ b/share/hedgewars/Data/Maps/Control/map.lua	Tue Aug 21 23:56:49 2018 +0200
@@ -217,10 +217,8 @@
 	for i = 0,(zCount-1) do			
 		if CurrentHedgehog ~= nil then		
 			if cOwnerClan[i] == GetHogClan(CurrentHedgehog) then
-				g = AddVisualGear(vCircX[i], vCircY[i]-100, vgtHealthTag, 100, False)
-                if g ~= 0 then
-				    SetVisualGearValues(g, vCircX[i], vCircY[i]-100, 0, 0, 0, 0, 0, teamScore[cOwnerClan[i]], 1500, GetClanColor(cOwnerClan[i]))
-                end
+				local g = AddVisualGear(vCircX[i], vCircY[i]-100, vgtHealthTag, 100, false)
+				SetVisualGearValues(g, vCircX[i], vCircY[i]-100, 0, 0, 0, 0, 0, teamScore[cOwnerClan[i]], 1500, GetClanColor(cOwnerClan[i]))
 			end
 		end
 	end