Browse Source

num_packitems

metaverse
jl777 5 years ago
parent
commit
8ce1f9dea1
  1. 2
      src/cc/rogue/command.c
  2. 5
      src/cc/rogue/pack.c

2
src/cc/rogue/command.c

@ -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++;
/*

5
src/cc/rogue/pack.c

@ -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++;

Loading…
Cancel
Save