----------------------------------------------
| 265 | |
| 266 | //---------------------------------------------- |
| 267 | gitem_t *FindItemForInventory( int inv ) |
| 268 | { |
| 269 | int i; |
| 270 | gitem_t *it; |
| 271 | |
| 272 | // Now just check for any other kind of item. |
| 273 | for ( i = 1 ; i < bg_numItems ; i++ ) |
| 274 | { |
| 275 | it = &bg_itemlist[i]; |
| 276 | |
| 277 | if ( it->giType == IT_HOLDABLE ) |
| 278 | { |
| 279 | if ( it->giTag == inv ) |
| 280 | { |
| 281 | return it; |
| 282 | } |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | Com_Error( ERR_DROP, "Couldn't find item for inventory %i", inv ); |
| 287 | return NULL; |
| 288 | } |
| 289 | |
| 290 | /* |
| 291 | =============== |
no test coverage detected