share/hedgewars/Data/Scripts/SimpleMission.lua
changeset 13588 141cdfe0f3ca
parent 13105 61076bb26cb3
child 13592 818134c33f54
--- a/share/hedgewars/Data/Scripts/SimpleMission.lua	Wed Aug 01 02:49:03 2018 +0200
+++ b/share/hedgewars/Data/Scripts/SimpleMission.lua	Wed Aug 01 15:50:39 2018 +0200
@@ -200,17 +200,6 @@
 	HELPER VARIABLES
 ]]
 
-local defaultClanColors = {
-	[0] = 0xff0204,	-- red
-	[1] = 0x4980c1,	-- blue
-	[2] = 0x1de6ba,	-- cyan
-	[3] = 0xb541ef,	-- purple
-	[4] = 0xe55bb0,	-- magenta
-	[5] = 0x20bf00,	-- green
-	[6] = 0xfe8b0e,	-- orange
-	[7] = 0x5f3605,	-- brown
-	[8] = 0xffff01,	-- yellow
-}
 local defaultGraves = {
 	"Grave", "Statue", "pyramid", "Simple", "skull", "Badger", "Duck2", "Flower"
 }
@@ -666,7 +655,7 @@
 			voice = def(teamData.voice, "Default")
 			flag = def(teamData.flag, defaultFlags[math.min(teamID, 8)])
 
-			AddTeam(name, defaultClanColors[clanID], grave, fort, voice, flag)
+			AddTeam(name, -(clanID+1), grave, fort, voice, flag)
 
 			for hogID, hogData in pairs(teamData.hogs) do
 				local name, botLevel, health, hat