From e5d33bab939d0e0f7a0fe8908659a6665a74218f Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 13 Mar 2019 06:29:59 -1100 Subject: [PATCH] Daemons or fuses --- src/cc/rogue/command.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/cc/rogue/command.c b/src/cc/rogue/command.c index f16ffc8c2..dac6ba2b9 100644 --- a/src/cc/rogue/command.c +++ b/src/cc/rogue/command.c @@ -456,13 +456,6 @@ over: if (!running) door_stop = FALSE; } - if ( fp2 == 0 ) - fp2 = fopen("commands","wb"); - if ( fp2 != 0 ) - { - fprintf(fp2,"after switch (%c).%d seed.%llu take.%d running.%d after.%d ntimes.%d\n",ch,ch,(long long)seed,take,running,after,ntimes); - fflush(fp2); - } /* * If he ran into something to take, let him pick it up. */ @@ -473,12 +466,19 @@ over: if (!after) ntimes++; } + if ( fp2 == 0 ) + fp2 = fopen("commands","wb"); if ( fp2 != 0 ) { fprintf(fp2,"after if (%c).%d seed.%llu\n",ch,ch,(long long)seed); fflush(fp2); } do_daemons(rs,AFTER); + if ( fp2 != 0 ) + { + fprintf(fp2,"after daemons (%c).%d seed.%llu isring.%d teleport.%d || search.%d teleport.%d\n",ch,ch,(long long)seed,ISRING(LEFT, R_SEARCH),ISRING(LEFT, R_TELEPORT),ISRING(RIGHT, R_SEARCH),ISRING(RIGHT, R_TELEPORT)); + fflush(fp2); + } do_fuses(rs,AFTER); if ( fp2 != 0 ) {