Do total items
This commit is contained in:
@@ -250,12 +250,16 @@ pack_char()
|
|||||||
int32_t num_packitems()
|
int32_t num_packitems()
|
||||||
{
|
{
|
||||||
THING *list = pack;
|
THING *list = pack;
|
||||||
int32_t type = 0,n = 0;
|
int32_t type = 0,n = 0,total = 0;
|
||||||
for (; list != NULL; list = next(list))
|
for (; list != NULL; list = next(list))
|
||||||
{
|
{
|
||||||
if (!list->o_packch)
|
if ( list->o_packch != 0 )
|
||||||
|
{
|
||||||
n++;
|
n++;
|
||||||
|
total += list->o_count;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
fprintf(stderr,"total.%d vs %d inventory letters\n",total,n);
|
||||||
return(n);
|
return(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user