-ddebugs
This commit is contained in:
@@ -160,7 +160,7 @@ readchar(struct rogue_state *rs)
|
|||||||
if ( rs->ind < rs->numkeys )
|
if ( rs->ind < rs->numkeys )
|
||||||
{
|
{
|
||||||
c = rs->keystrokes[rs->ind++];
|
c = rs->keystrokes[rs->ind++];
|
||||||
if ( 1 )
|
if ( 0 )
|
||||||
{
|
{
|
||||||
static FILE *fp; static int32_t counter;
|
static FILE *fp; static int32_t counter;
|
||||||
if ( fp == 0 )
|
if ( fp == 0 )
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ int total = 0; /* total dynamic memory bytes */
|
|||||||
* Free up an item
|
* Free up an item
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define ENABLE_DEBUG
|
//#define ENABLE_DEBUG
|
||||||
#define MAX_DEBUGPTRS 100000
|
#define MAX_DEBUGPTRS 100000
|
||||||
|
|
||||||
int32_t itemcounter;
|
int32_t itemcounter;
|
||||||
|
|||||||
@@ -285,11 +285,6 @@ inventory(struct rogue_state *rs,THING *list, int type)
|
|||||||
list->o_type != FOOD && list->o_type != AMULET) &&
|
list->o_type != FOOD && list->o_type != AMULET) &&
|
||||||
!(type == R_OR_S && (list->o_type == RING || list->o_type == STICK)))
|
!(type == R_OR_S && (list->o_type == RING || list->o_type == STICK)))
|
||||||
continue;
|
continue;
|
||||||
/*if ( thing_find(list) < 0 )
|
|
||||||
{
|
|
||||||
fprintf(stderr,"cant find thing.(%c) in pack\n",list->o_packch);
|
|
||||||
sleep(3);
|
|
||||||
}*/
|
|
||||||
n_objs++;
|
n_objs++;
|
||||||
#ifdef MASTER
|
#ifdef MASTER
|
||||||
if (!list->o_packch)
|
if (!list->o_packch)
|
||||||
@@ -477,11 +472,6 @@ get_item(struct rogue_state *rs,char *purpose, int type)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( 0 && thing_find(obj) < 0 )
|
|
||||||
{
|
|
||||||
fprintf(stderr,"cant find thing.%p in list\n",obj); sleep(3);
|
|
||||||
return(NULL);
|
|
||||||
}
|
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user