equal
deleted
inserted
replaced
2458 EngineID i; |
2458 EngineID i; |
2459 uint16 best_capacity = 0; |
2459 uint16 best_capacity = 0; |
2460 uint16 best_speed = 0; |
2460 uint16 best_speed = 0; |
2461 uint speed; |
2461 uint speed; |
2462 |
2462 |
2463 for (i = 0; i < NUM_TRAIN_ENGINES; i++) { |
2463 FOR_ALL_ENGINEIDS_OF_TYPE(i, VEH_TRAIN) { |
2464 const RailVehicleInfo *rvi = RailVehInfo(i); |
2464 const RailVehicleInfo *rvi = RailVehInfo(i); |
2465 const Engine* e = GetEngine(i); |
2465 const Engine* e = GetEngine(i); |
2466 |
2466 |
2467 if (!IsCompatibleRail(rvi->railtype, railtype) || |
2467 if (!IsCompatibleRail(rvi->railtype, railtype) || |
2468 rvi->railveh_type != RAILVEH_WAGON || |
2468 rvi->railveh_type != RAILVEH_WAGON || |