equal
deleted
inserted
replaced
1029 * same for all triggered vehicles in the chain (to get |
1029 * same for all triggered vehicles in the chain (to get |
1030 * all the random-cargo wagons carry the same cargo, |
1030 * all the random-cargo wagons carry the same cargo, |
1031 * i.e.), so we give them all the NEW_CARGO triggered |
1031 * i.e.), so we give them all the NEW_CARGO triggered |
1032 * vehicle's portion of random bits. */ |
1032 * vehicle's portion of random bits. */ |
1033 assert(first); |
1033 assert(first); |
1034 DoTriggerVehicle(GetFirstVehicleInChain(v), VEHICLE_TRIGGER_ANY_NEW_CARGO, new_random_bits, false); |
1034 DoTriggerVehicle((v->type == VEH_Train) ? GetFirstVehicleInChain(v) : v, VEHICLE_TRIGGER_ANY_NEW_CARGO, new_random_bits, false); |
1035 break; |
1035 break; |
1036 |
1036 |
1037 case VEHICLE_TRIGGER_DEPOT: |
1037 case VEHICLE_TRIGGER_DEPOT: |
1038 /* We now trigger the next vehicle in chain recursively. |
1038 /* We now trigger the next vehicle in chain recursively. |
1039 * The random bits portions may be different for each |
1039 * The random bits portions may be different for each |