src/newgrf.cpp
changeset 6702 57fdddcffcfc
parent 6701 d4c3cb84e494
child 6719 4cc327ad39d5
child 6920 ee15b916f758
equal deleted inserted replaced
6701:d4c3cb84e494 6702:57fdddcffcfc
  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: {