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

Method Restore

src/train_cmd.cpp:2657–2664  ·  view source on GitHub ↗

* Restore the saved order to the vehicle. */

Source from the content-addressed store, hash-verified

2655 * Restore the saved order to the vehicle.
2656 */
2657 void Restore()
2658 {
2659 this->v->current_order = this->old_order;
2660 this->v->dest_tile = this->old_dest_tile;
2661 this->v->last_station_visited = this->old_last_station_visited;
2662 AssignBit(this->v->gv_flags, GVF_SUPPRESS_IMPLICIT_ORDERS, suppress_implicit_orders);
2663 this->restored = true;
2664 }
2665
2666 /**
2667 * Restore the saved order to the vehicle, if Restore() has not already been called.

Callers 2

~VehicleOrderSaverMethod · 0.95
ChooseTrainTrackFunction · 0.45

Calls 1

AssignBitFunction · 0.85

Tested by

no test coverage detected