Skip to content

Commit

Permalink
Airport import script updated for Syria
Browse files Browse the repository at this point in the history
  • Loading branch information
Khopa authored and rp- committed Aug 21, 2020
1 parent c82afd9 commit 45fe943
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/airport_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
function dumpairportdata()
local S = require('Serializer')
local airdromedump = {}
for k, v in base.pairs(MapWindow.listAirdromes) do
for k, v in base.pairs(base.MapWindow.listAirdromes) do
--MapWindow.listAirdromes[unit.boss.route.points[1].airdromeId].roadnet
local sList = Terrain.getStandList(v.roadnet, {"SHELTER","FOR_HELICOPTERS","FOR_AIRPLANES","WIDTH","LENGTH","HEIGHT"})
info = {}
info["airport"] = v
info["standlist"] = sList
airdromedump[k] = info
end
local f = base.io.open("C:\\tmp\\standlist.lua", 'w')
local f = base.io.open("C:\\standlist.lua", 'w')
if f then
local s = S.new(f)
s:serialize_simple2('airports', airdromedump)
Expand All @@ -41,7 +41,7 @@ def safename(name):

def main():
parser = argparse.ArgumentParser()
parser.add_argument("-t", "--terrain", choices=["caucasus", "nevada", "normandy", "persiangulf", "thechannel"], default="caucasus")
parser.add_argument("-t", "--terrain", choices=["caucasus", "nevada", "normandy", "persiangulf", "thechannel", "syria"], default="caucasus")
parser.add_argument("airportinfofile")

args = parser.parse_args()
Expand Down

0 comments on commit 45fe943

Please sign in to comment.