From 4626a8dae9d15519ee95ce80488755fb5f2afc33 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 6 Mar 2019 01:27:56 -1100 Subject: [PATCH] Test --- src/cc/rogue/fight.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/cc/rogue/fight.c b/src/cc/rogue/fight.c index ba140205e..4c9b61da6 100644 --- a/src/cc/rogue/fight.c +++ b/src/cc/rogue/fight.c @@ -307,13 +307,14 @@ attack(struct rogue_state *rs,THING *mp) { remove_mon(rs,&mp->t_pos, moat(mp->t_pos.y, mp->t_pos.x), FALSE); mp=NULL; - fprintf(stderr,"hp.%d num.%d A\n",pstats.s_hpt,num_packitems(rs)); sleep(3); - +if ( thing_find(steal) < 0 ) +{ + fprintf(stderr,"steal %p not foun\n",steal); + sleep(3); +} leave_pack(rs,steal, FALSE, FALSE); msg(rs,"she stole %s!", inv_name(steal, TRUE)); - fprintf(stderr," hp.%d num.%d B\n",pstats.s_hpt,num_packitems(rs)); sleep(3); discard(steal); - fprintf(stderr," hp.%d num.%d C\n",pstats.s_hpt,num_packitems(rs)); sleep(3); } } otherwise: