share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
changeset 13585 72515cd20984
parent 13506 36f3f77e9b1b
child 13596 7699987d9f70
equal deleted inserted replaced
13584:53ca3a22da45 13585:72515cd20984
  1485 		teamCounter = teamCounter + 1
  1485 		teamCounter = teamCounter + 1
  1486 		if teamCounter == 9 then
  1486 		if teamCounter == 9 then
  1487 			teamCounter = 1
  1487 			teamCounter = 1
  1488 		end
  1488 		end
  1489 
  1489 
  1490 		-- Convert color to string
  1490 		-- Color argument for AddTeam; using the
  1491 		local rgba = GetClanColor(GetHogClan(gear))
  1491 		-- default clan color format.
  1492 		local rgb = div(band(rgba, 0xFFFFFF00), 0x100)
  1492 		local tColor = -(GetHogClan(gear)+1)
  1493 		local tColor = string.format("0x%X", rgb)
       
  1494 
  1493 
  1495 		local tFort, tGrave, tFlag, tVoice
  1494 		local tFort, tGrave, tFlag, tVoice
  1496 		if getGearValue(gear,"grave") == nil then
  1495 		if getGearValue(gear,"grave") == nil then
  1497 			tFort = GetHogFort(gear)
  1496 			tFort = GetHogFort(gear)
  1498 			tGrave = GetHogGrave(gear)
  1497 			tGrave = GetHogGrave(gear)