equal
deleted
inserted
replaced
783 /** |
783 /** |
784 * |
784 * |
785 * Restore vehicle orders that are backupped via BackupVehicleOrders |
785 * Restore vehicle orders that are backupped via BackupVehicleOrders |
786 * |
786 * |
787 */ |
787 */ |
788 void RestoreVehicleOrders(Vehicle *v, BackuppedOrders *bak) |
788 void RestoreVehicleOrders(const Vehicle* v, const BackuppedOrders* bak) |
789 { |
789 { |
790 uint i; |
790 uint i; |
791 |
791 |
792 /* If we have a custom name, process that */ |
792 /* If we have a custom name, process that */ |
793 if (bak->name[0] != 0) { |
793 if (bak->name[0] != 0) { |
1098 * Check if a vehicle has any valid orders |
1098 * Check if a vehicle has any valid orders |
1099 * |
1099 * |
1100 * @return false if there are no valid orders |
1100 * @return false if there are no valid orders |
1101 * |
1101 * |
1102 */ |
1102 */ |
1103 bool CheckForValidOrders(Vehicle *v) |
1103 bool CheckForValidOrders(const Vehicle* v) |
1104 { |
1104 { |
1105 const Order *order; |
1105 const Order *order; |
1106 |
1106 |
1107 FOR_VEHICLE_ORDERS(v, order) |
1107 FOR_VEHICLE_ORDERS(v, order) |
1108 if (order->type != OT_DUMMY) |
1108 if (order->type != OT_DUMMY) |