MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / PrevPos

Method PrevPos

Descent3/Inventory.cpp:1161–1171  ·  view source on GitHub ↗

moves the position pointer to the previous inventory item

Source from the content-addressed store, hash-verified

1159
1160// moves the position pointer to the previous inventory item
1161void Inventory::PrevPos(bool skip) {
1162 if ((pos) && (pos->prev)) {
1163 pos = pos->prev;
1164 } else if (!pos) {
1165 pos = root;
1166 } else
1167 return;
1168
1169 if (!skip)
1170 ValidatePos(false);
1171}
1172
1173// returns true if the position pointer is at the begining of the inventory list
1174bool Inventory::AtBeginning(void) {

Callers 3

dInven_PrevPosFunction · 0.80
InventorySwitchFunction · 0.80
CounterMeasuresSwitchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected