equal
deleted
inserted
replaced
4417 SETBIT(xor_mask, cargo); |
4417 SETBIT(xor_mask, cargo); |
4418 } |
4418 } |
4419 } |
4419 } |
4420 } |
4420 } |
4421 _engine_info[engine].refit_mask = ((mask & ~not_mask) ^ xor_mask) & _cargo_mask; |
4421 _engine_info[engine].refit_mask = ((mask & ~not_mask) ^ xor_mask) & _cargo_mask; |
4422 |
|
4423 if (_engine_info[engine].refit_mask == 0) continue; |
|
4424 |
4422 |
4425 /* Check if this engine's cargo type is valid. If not, set to the first refittable |
4423 /* Check if this engine's cargo type is valid. If not, set to the first refittable |
4426 * cargo type. Apparently cargo_type isn't a common property... */ |
4424 * cargo type. Apparently cargo_type isn't a common property... */ |
4427 switch (GetEngine(engine)->type) { |
4425 switch (GetEngine(engine)->type) { |
4428 case VEH_TRAIN: { |
4426 case VEH_TRAIN: { |