* * Assign data to an order (from another order) * This function makes sure that the index is maintained correctly * @param other the data to copy (except next pointer). * */
| 233 | * |
| 234 | */ |
| 235 | void Order::AssignOrder(const Order &other) |
| 236 | { |
| 237 | this->type = other.type; |
| 238 | this->flags = other.flags; |
| 239 | this->dest = other.dest; |
| 240 | |
| 241 | this->refit_cargo = other.refit_cargo; |
| 242 | |
| 243 | this->wait_time = other.wait_time; |
| 244 | this->travel_time = other.travel_time; |
| 245 | this->max_speed = other.max_speed; |
| 246 | } |
| 247 | |
| 248 | /** |
| 249 | * Recomputes everything. |
no outgoing calls
no test coverage detected