equal
deleted
inserted
replaced
343 /* Sometimes primary vehicles would have a nothing (invalid) order |
343 /* Sometimes primary vehicles would have a nothing (invalid) order |
344 * or vehicles that could not have an order would still have a |
344 * or vehicles that could not have an order would still have a |
345 * (loading) order which causes assertions and the like later on. |
345 * (loading) order which causes assertions and the like later on. |
346 */ |
346 */ |
347 if (!IsPlayerBuildableVehicleType(v) || |
347 if (!IsPlayerBuildableVehicleType(v) || |
348 (v->IsPrimaryVehicle() && v->current_order.type == OT_NOTHING)) { |
348 (v->IsPrimaryVehicle() && v->current_order.IsType(OT_NOTHING))) { |
349 v->current_order.type = OT_DUMMY; |
349 v->current_order.MakeDummy(); |
350 } |
350 } |
351 |
351 |
352 FOR_ALL_VEHICLES_FROM(u, v->index + 1) { |
352 FOR_ALL_VEHICLES_FROM(u, v->index + 1) { |
353 /* If a vehicle has the same orders, add the link to eachother |
353 /* If a vehicle has the same orders, add the link to eachother |
354 * in both vehicles */ |
354 * in both vehicles */ |