equal
deleted
inserted
replaced
1345 |
1345 |
1346 if (IsRearDualheaded(v)) return_cmd_error(STR_REAR_ENGINE_FOLLOW_FRONT_ERROR); |
1346 if (IsRearDualheaded(v)) return_cmd_error(STR_REAR_ENGINE_FOLLOW_FRONT_ERROR); |
1347 |
1347 |
1348 if (flags & DC_EXEC) { |
1348 if (flags & DC_EXEC) { |
1349 if (v == first && IsFrontEngine(first)) { |
1349 if (v == first && IsFrontEngine(first)) { |
1350 w = FindWindowById(WC_VEHICLE_VIEW, first->index); |
1350 delete FindWindowById(WC_VEHICLE_VIEW, first->index); |
1351 if (w != NULL) DeleteWindow(w); |
|
1352 } |
1351 } |
1353 InvalidateWindow(WC_VEHICLE_DEPOT, first->tile); |
1352 InvalidateWindow(WC_VEHICLE_DEPOT, first->tile); |
1354 RebuildVehicleLists(); |
1353 RebuildVehicleLists(); |
1355 } |
1354 } |
1356 |
1355 |