equal
deleted
inserted
replaced
4400 * Precalculate refit masks from cargo classes for all vehicles. |
4400 * Precalculate refit masks from cargo classes for all vehicles. |
4401 */ |
4401 */ |
4402 static void CalculateRefitMasks() |
4402 static void CalculateRefitMasks() |
4403 { |
4403 { |
4404 for (EngineID engine = 0; engine < TOTAL_NUM_ENGINES; engine++) { |
4404 for (EngineID engine = 0; engine < TOTAL_NUM_ENGINES; engine++) { |
4405 /* Skip engine if not available in this climate */ |
|
4406 if (!HASBIT(_engine_info[engine].climates, _opt.landscape)) continue; |
|
4407 |
|
4408 uint32 mask = 0; |
4405 uint32 mask = 0; |
4409 uint32 not_mask = 0; |
4406 uint32 not_mask = 0; |
4410 uint32 xor_mask = 0; |
4407 uint32 xor_mask = 0; |
4411 |
4408 |
4412 if (_engine_info[engine].refit_mask != 0) { |
4409 if (_engine_info[engine].refit_mask != 0) { |