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

Method GetPosCount

Descent3/Inventory.cpp:1253–1262  ·  view source on GitHub ↗

returns the count of the item at the current position

Source from the content-addressed store, hash-verified

1251
1252// returns the count of the item at the current position
1253int Inventory::GetPosCount(void) {
1254 // mprintf(0,"Getting Pos Count (%d)\n",pos->count);
1255 if (!pos)
1256 return 0;
1257
1258 if (pos->iflags & INVF_OBJECT)
1259 return 1;
1260
1261 return pos->count;
1262}
1263
1264// return information about the current position item
1265// returns true if the pos is a real object in the game

Callers 3

msafe_GetValueFunction · 0.80
dInven_GetPosCountFunction · 0.80
PlayerSpewInventoryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected