# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1533140230 -7200
# Node ID 72515cd20984082b50403e85e802917c832ffb95
# Parent  53ca3a22da45b44a640304234998aa2a4f54d9e9
HedgeEditor: Use default clan color in AddTeam in mission export

diff -r 53ca3a22da45 -r 72515cd20984 share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
--- 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