Loading

RoadAI 4 vs 5

  1. diff --git a/info.nut b/info.nut
  2. index e68a3cc..1f0b33c 100644
  3. --- a/info.nut
  4. +++ b/info.nut
  5. @@ -22,8 +22,8 @@
  6.         function GetName()        { return "RoadAI"; }
  7.         function GetShortName()   { return "RDAI"; }
  8.         function GetDescription() { return "RoadAI builds a massive, rapidly expanding road network."; }
  9. -       function GetAPIVersion()  { return "1.6"; }
  10. -       function GetVersion()     { return 4; }
  11. +       function GetAPIVersion()  { return "1.8"; }
  12. +       function GetVersion()     { return 5; }
  13.         function GetDate()        { return "2016-10-07"; }
  14.         function GetUrl()         { return "https://www.tt-forums.net/viewtopic.php?p=1176857"; }
  15.         function CreateInstance() { return "RoadAI"; }
  16. diff --git a/main.nut b/main.nut
  17. index b65bdd7..b882be6 100644
  18. --- a/main.nut
  19. +++ b/main.nut
  20. @@ -17,7 +17,7 @@
  21.   *
  22.   */
  23.  // Add all the files for libraries here
  24. -import("util.superlib","SuperLib",39);
  25. +import("util.superlib","SuperLib",40);
  26.  // Add all your files here
  27.  require("network.nut");
  28.  require("town.nut");
  29. diff --git a/network.nut b/network.nut
  30. index da6b8c2..d6ae607 100644
  31. --- a/network.nut
  32. +++ b/network.nut
  33. @@ -89,7 +89,7 @@ function Network::ManageNetwork()
  34.                 if(!this.AddTown(town1)) {
  35.                         // Town was not added
  36.                         // Add to blacklist so that we do not try this city again
  37. -                       this.blacklist.AddItem(town1);
  38. +                       this.blacklist.AddItem(town1, 0);
  39.                         return;
  40.                 }
  41.                 this.ExpandStation(towns[0].stations[0]);

Comments