returns the count of the item at the current position
| 1251 | |
| 1252 | // returns the count of the item at the current position |
| 1253 | int 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 |
no outgoing calls
no test coverage detected