From 5b12ba1c21611bb826405cd38b91b29784fdc57a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 31 Aug 2014 14:45:04 +0200 Subject: [PATCH] refactor and move ShipUnitTypes to the top --- mods/ra/maps/desert-shellmap/desert-shellmap.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/ra/maps/desert-shellmap/desert-shellmap.lua b/mods/ra/maps/desert-shellmap/desert-shellmap.lua index 4b37480015..9255aaff4a 100644 --- a/mods/ra/maps/desert-shellmap/desert-shellmap.lua +++ b/mods/ra/maps/desert-shellmap/desert-shellmap.lua @@ -30,6 +30,8 @@ else } end +ShipUnitTypes = { "1tnk", "1tnk", "jeep", "2tnk", "2tnk" } + ParadropWaypoints = { Paradrop1, Paradrop2, Paradrop3, Paradrop4, Paradrop5, Paradrop6, Paradrop7, Paradrop8 } BindActorTriggers = function(a) @@ -69,7 +71,7 @@ end ShipAlliedUnits = function() local transport = Actor.Create("lst", true, { Location = LstEntry.Location, Owner = allies }) - Utils.Do({ "1tnk", "1tnk", "jeep", "2tnk", "2tnk" }, function(type) + Utils.Do(ShipUnitTypes, function(type) local a = Actor.Create(type, false, { Owner = allies }) BindActorTriggers(a) transport.LoadPassenger(a)