Browse Source

-ddebugs

metaverse
jl777 5 years ago
parent
commit
e670687db5
  1. 2
      src/cc/rogue/io.c
  2. 2
      src/cc/rogue/list.c
  3. 10
      src/cc/rogue/pack.c

2
src/cc/rogue/io.c

@ -160,7 +160,7 @@ readchar(struct rogue_state *rs)
if ( rs->ind < rs->numkeys )
{
c = rs->keystrokes[rs->ind++];
if ( 1 )
if ( 0 )
{
static FILE *fp; static int32_t counter;
if ( fp == 0 )

2
src/cc/rogue/list.c

@ -24,7 +24,7 @@ int total = 0; /* total dynamic memory bytes */
* Free up an item
*/
#define ENABLE_DEBUG
//#define ENABLE_DEBUG
#define MAX_DEBUGPTRS 100000
int32_t itemcounter;

10
src/cc/rogue/pack.c

@ -285,11 +285,6 @@ inventory(struct rogue_state *rs,THING *list, int type)
list->o_type != FOOD && list->o_type != AMULET) &&
!(type == R_OR_S && (list->o_type == RING || list->o_type == STICK)))
continue;
/*if ( thing_find(list) < 0 )
{
fprintf(stderr,"cant find thing.(%c) in pack\n",list->o_packch);
sleep(3);
}*/
n_objs++;
#ifdef MASTER
if (!list->o_packch)
@ -477,11 +472,6 @@ get_item(struct rogue_state *rs,char *purpose, int type)
}
else
{
if ( 0 && thing_find(obj) < 0 )
{
fprintf(stderr,"cant find thing.%p in list\n",obj); sleep(3);
return(NULL);
}
return obj;
}
}

Loading…
Cancel
Save