Loading

amount seems to be above

  1. Station* station = Station::Get(stationId);
  2. uint amount = station->goods[CC_PASSENGERS].cargo.TotalCount();
  3. //I've tried .AvailableCount() and CT_PASSENGERS each aswell, same result.
  4. if (!station->goods[CC_PASSENGERS].HasVehicleEverTriedLoading()) return true;
  5. if (amount == 0) {
  6.     return false;
  7. } else {
  8.     return true;
  9. }
  10.  
  11. //This always returns true.

Comments