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

Function shiftOrdersLeft

src/OpenLoco/src/Vehicles/OrderManager.cpp:115–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 uint32_t& orderTableLength() { return getGameState().orderTableLength; }
114
115 void shiftOrdersLeft(const uint32_t offsetToShiftTowards, const int16_t sizeToShiftBy)
116 {
117 std::rotate(&orders()[offsetToShiftTowards], &orders()[offsetToShiftTowards + sizeToShiftBy], &orders()[orderTableLength()]);
118 }
119
120 void shiftOrdersRight(const uint32_t offsetToShiftFrom, const int16_t sizeToShiftBy)
121 {

Callers 2

deleteOrderFunction · 0.85
freeOrdersFunction · 0.85

Calls 2

ordersFunction · 0.85
rotateFunction · 0.50

Tested by

no test coverage detected