MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / AssignOrder

Method AssignOrder

src/order_cmd.cpp:235–246  ·  view source on GitHub ↗

* * 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). * */

Source from the content-addressed store, hash-verified

233 *
234 */
235void 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.

Callers 3

LoadMethod · 0.80
LoadOldOrderFunction · 0.80
LoadOldVehicleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected