share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
changeset 13585 72515cd20984
parent 13512 36f3f77e9b1b
child 13596 7699987d9f70
--- a/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Wed Aug 01 17:30:13 2018 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Wed Aug 01 18:17:10 2018 +0200
@@ -1487,10 +1487,9 @@
 			teamCounter = 1
 		end
 
-		-- Convert color to string
-		local rgba = GetClanColor(GetHogClan(gear))
-		local rgb = div(band(rgba, 0xFFFFFF00), 0x100)
-		local tColor = string.format("0x%X", rgb)
+		-- Color argument for AddTeam; using the
+		-- default clan color format.
+		local tColor = -(GetHogClan(gear)+1)
 
 		local tFort, tGrave, tFlag, tVoice
 		if getGearValue(gear,"grave") == nil then