MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / shiftOrdersRight

Function shiftOrdersRight

src/OpenLoco/src/Vehicles/OrderManager.cpp:120–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 }
119
120 void shiftOrdersRight(const uint32_t offsetToShiftFrom, const int16_t sizeToShiftBy)
121 {
122 std::rotate(&orders()[offsetToShiftFrom], &orders()[orderTableLength()], &orders()[orderTableLength() + sizeToShiftBy]);
123 }
124
125 // 0x00470795
126 void reoffsetVehicleOrderTables(const uint32_t removeOrderTableOffset, const int16_t sizeOfRemovedOrderTable)

Callers 1

insertOrderFunction · 0.85

Calls 2

ordersFunction · 0.85
rotateFunction · 0.50

Tested by

no test coverage detected