Loading

Paste #pozutqws7

  1.         local start_tick = AIController.GetTick();
  2.         for (local i = routeManager.m_townRouteArray.len() - 1; i >= 0; --i) {
  3. //          AILog.Info("managing route " + i + ". sellVehiclesInDepot");
  4.             routeManager.m_townRouteArray[i].sellVehiclesInDepot();
  5.         }
  6.         local management_ticks = AIController.GetTick() - start_tick;
  7.         AILog.Info("Managed " + routeManager.m_townRouteArray.len() + " road route" + (routeManager.m_townRouteArray.len() != 1 ? "s" : "") + " in " + management_ticks + " tick" + (management_ticks != 1 ? "s" : "") + ".");

Comments