num_packitems
This commit is contained in:
@@ -25,7 +25,7 @@ command(struct rogue_state *rs)
|
|||||||
char *fp;
|
char *fp;
|
||||||
THING *mp;
|
THING *mp;
|
||||||
static char countch, direction, newcount = FALSE;
|
static char countch, direction, newcount = FALSE;
|
||||||
|
num_packitems(rs);
|
||||||
if (on(player, ISHASTE))
|
if (on(player, ISHASTE))
|
||||||
ntimes++;
|
ntimes++;
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -163,6 +163,11 @@ int32_t num_packitems(struct rogue_state *rs)
|
|||||||
int32_t type = 0,n = 0,total = 0;
|
int32_t type = 0,n = 0,total = 0;
|
||||||
for (; list != NULL; list = next(list))
|
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 )
|
if ( list->o_packch != 0 )
|
||||||
{
|
{
|
||||||
n++;
|
n++;
|
||||||
|
|||||||
Reference in New Issue
Block a user