Skip to content

Commit

Permalink
update exporter script
Browse files Browse the repository at this point in the history
  • Loading branch information
rp- committed Jan 11, 2017
1 parent 4e1c71d commit ce1743c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/pydcs_export.lua
Expand Up @@ -179,6 +179,8 @@ flyable["MiG-21Bis"] = true
flyable["Ka-50"] = true
flyable["Mi-8MT"] = true
flyable["UH-1H"] = true
flyable["SpitfireLFMkIX"] = true
flyable["SA342M"] = true


local function export_aircraft(file, aircrafts, export_type, exportplane)
Expand Down Expand Up @@ -372,7 +374,9 @@ from enum import Enum
local name = weapons_map[plane.Pylons[j].Launchers[k].CLSID]
writeln(file, ' '..name..' = ('..j..', Weapons.'..name..')')
else
writeln(file, '#ERRR '..plane.Pylons[j].Launchers[k].CLSID)
if plane.Pylons[j].Launchers[k].CLSID then
writeln(file, '#ERRR '..plane.Pylons[j].Launchers[k].CLSID)
end
end
end
end
Expand Down

0 comments on commit ce1743c

Please sign in to comment.