Use GetHogFort in HedgeEditor
authorWuzzy <almikes@aol.com>
Wed, 23 Nov 2016 19:43:40 +0100
changeset 12047 7163626748e0
parent 12046 553f97b1e4fe
child 12048 475a1289f940
Use GetHogFort in HedgeEditor
share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Wed Nov 23 19:39:01 2016 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Wed Nov 23 19:43:40 2016 +0100
@@ -540,12 +540,6 @@
 	table.insert(preMadeTeamNamesTranslated, loc(preMadeTeam[i][1]))
 end
 
-local fortArray =	{
-					"Cake", "Castle", "Earth", "EvilChicken", "Flowerhog",
-					"Hydrant", "Lego", "Plane", "Statue", "SteelTower", "Tank",
-					"UFO", "Wood"
-					}
-
 local gameFlagList =	{
 			{"gfMultiWeapon", false, gfMultiWeapon},
 			{"gfBorder", false, gfBorder},
@@ -1458,7 +1452,7 @@
 		local tColor = string.format("0x%X", rgb)
 
 		if getGearValue(gear,"grave") == nil then
-			tFort = fortArray[1+GetRandom(#fortArray)]
+			tFort = GetHogFort(gear)
 			tGrave = GetHogGrave(gear)
 			tFlag = GetHogFlag(gear)
 			tVoice = GetHogVoicepack(gear)