num_packitems

This commit is contained in:
jl777
2019-03-06 01:10:45 -11:00
parent 8bb36334e4
commit 8ce1f9dea1
2 changed files with 6 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ command(struct rogue_state *rs)
char *fp;
THING *mp;
static char countch, direction, newcount = FALSE;
num_packitems(rs);
if (on(player, ISHASTE))
ntimes++;
/*

View File

@@ -163,6 +163,11 @@ int32_t num_packitems(struct rogue_state *rs)
int32_t type = 0,n = 0,total = 0;
for (; list != NULL; list = next(list))
{
if ( thing_find(list) < 0 )
{
fprintf(stderr,"num_packitems cant find %p\n",list);
sleep(3);
}
if ( list->o_packch != 0 )
{
n++;