dmitrysenkovich

Untitled

Sep 2nd, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.77 KB | None | 0 0
  1. Index: Constructor/Operations/ExportAirfields.cs
  2. ===================================================================
  3. --- Constructor/Operations/ExportAirfields.cs   (revision 6378)
  4. +++ Constructor/Operations/ExportAirfields.cs   (working copy)
  5. @@ -86,6 +86,8 @@
  6.                  var airfieldDir = appEnv.terrainConfig.AirfieldsDir.AbsoluteByRelativeTcons();
  7.  
  8.                  var airfieldLua = System.IO.Path.Combine(airfieldDir, airfield.name + ".extra.cfg.lua");
  9. +                System.IO.File.Delete(airfieldLua);
  10. +                System.IO.File.Create(airfieldLua);
  11.  
  12.                  command = new Command();
  13.                  command.EdtuCommand = "build-airfield";
  14. Index: Constructor/Operations/TerrainConfig.cs
  15. ===================================================================
  16. --- Constructor/Operations/TerrainConfig.cs (revision 6378)
  17. +++ Constructor/Operations/TerrainConfig.cs (working copy)
  18. @@ -1267,13 +1267,6 @@
  19.  ");
  20.  
  21.              var airfields = AppEnv.Instance.Project.Airfields;
  22. -            for (int i = 0; i != airfields.Count; ++i)
  23. -            {
  24. -                if (!airfields[i].Enabled)
  25. -                    continue;
  26. -                b.AppendLine(airfields[i].name + " = " + (i+1));
  27. -            }
  28. -            b.AppendLine();
  29.  
  30.              b.AppendLine("Airdromes = {}");
  31.              b.AppendLine();
  32. @@ -1330,7 +1323,7 @@
  33.  
  34.                  var airfieldLua = System.IO.Path.Combine(airfieldDir, airfield.name + ".cfg.lua");
  35.  
  36. -                b.AppendLine("Airdromes[" + airfield.name + "] = {");
  37. +                b.AppendLine("Airdromes[\"" + airfield.name + "\"] = {");
  38.  
  39.                  b.AppendLine(string.Format("\tcode = \"{0}\",", airfieldData.Code));
  40.                  b.AppendLine(string.Format("\tclass = \"{0}\",", airfieldData.Class));
Advertisement
Add Comment
Please, Sign In to add comment