From e670687db59468245b500ff817dd5dde1c1e78ae Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 6 Mar 2019 03:20:41 -1100 Subject: [PATCH] -ddebugs --- src/cc/rogue/io.c | 2 +- src/cc/rogue/list.c | 2 +- src/cc/rogue/pack.c | 10 ---------- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/cc/rogue/io.c b/src/cc/rogue/io.c index 32f19bdb2..4c289ad7d 100644 --- a/src/cc/rogue/io.c +++ b/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 ) diff --git a/src/cc/rogue/list.c b/src/cc/rogue/list.c index 60eac8b16..a021c6a8f 100644 --- a/src/cc/rogue/list.c +++ b/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; diff --git a/src/cc/rogue/pack.c b/src/cc/rogue/pack.c index c49b87140..1f2f3faaa 100644 --- a/src/cc/rogue/pack.c +++ b/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; } }