Loading

Paste #pepir7ja6

  1. /**
  2.  * Test whether a vehicle can load cargo at a station even if exclusive transport rights are present.
  3.  * @param st Station with cargo waiting to be loaded.
  4.  * @param v Vehicle loading the cargo.
  5.  * @return true when a vehicle can load the cargo.
  6.  */
  7. static bool VehicleMayLoad(const Station *st, const Vehicle *v)
  8. {
  9.     return st->owner != OWNER_NONE || st->town->exclusive_counter == 0 || st->town->exclusivity == v->owner;
  10. }

Comments