Advertisement
dmitrysenkovich

Untitled

Sep 3rd, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.45 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. @@ -85,7 +85,10 @@
  6.  
  7.                  var airfieldDir = appEnv.terrainConfig.AirfieldsDir.AbsoluteByRelativeTcons();
  8.  
  9. -                var airfieldLua = System.IO.Path.Combine(airfieldDir, airfield.name + ".extra.cfg.lua");
  10. +                var oldAirfieldLua = System.IO.Path.Combine(airfieldDir, airfield.name + ".extra.cfg.lua");
  11. +                var airfieldLua = System.IO.Path.Combine(airfieldDir, airfield.name + ".extra2.cfg.lua");
  12. +                System.IO.File.Delete(oldAirfieldLua);
  13. +                System.IO.File.Delete(airfieldLua);
  14.  
  15.                  command = new Command();
  16.                  command.EdtuCommand = "build-airfield";
  17. Index: Constructor/Operations/TerrainConfig.cs
  18. ===================================================================
  19. --- Constructor/Operations/TerrainConfig.cs (revision 6378)
  20. +++ Constructor/Operations/TerrainConfig.cs (working copy)
  21. @@ -1267,13 +1267,6 @@
  22.  ");
  23.  
  24.              var airfields = AppEnv.Instance.Project.Airfields;
  25. -            for (int i = 0; i != airfields.Count; ++i)
  26. -            {
  27. -                if (!airfields[i].Enabled)
  28. -                    continue;
  29. -                b.AppendLine(airfields[i].name + " = " + (i+1));
  30. -            }
  31. -            b.AppendLine();
  32.  
  33.              b.AppendLine("Airdromes = {}");
  34.              b.AppendLine();
  35. @@ -1290,7 +1283,7 @@
  36.                      continue;
  37.  
  38.                  var path = AirfieldsDirRelativeToTerrainCfg + airfield.name + ".cfg.lua";
  39. -                var additionalPath = AirfieldsDirRelativeToTerrainCfg + airfield.name + ".extra.cfg.lua";
  40. +                var additionalPath = AirfieldsDirRelativeToTerrainCfg + airfield.name + ".extra2.cfg.lua";
  41.                  path = path.Unix();
  42.                  additionalPath = additionalPath.Unix();
  43.  
  44. @@ -1330,7 +1323,7 @@
  45.  
  46.                  var airfieldLua = System.IO.Path.Combine(airfieldDir, airfield.name + ".cfg.lua");
  47.  
  48. -                b.AppendLine("Airdromes[" + airfield.name + "] = {");
  49. +                b.AppendLine("Airdromes[\"" + airfield.name + "\"] = {");
  50.  
  51.                  b.AppendLine(string.Format("\tcode = \"{0}\",", airfieldData.Code));
  52.                  b.AppendLine(string.Format("\tclass = \"{0}\",", airfieldData.Class));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement