Commands log

This commit is contained in:
jl777
2019-03-13 06:02:27 -11:00
parent fc6546f8d9
commit 37392635f7
2 changed files with 15 additions and 0 deletions

View File

@@ -475,6 +475,16 @@ over:
search(rs);
else if (ISRING(RIGHT, R_TELEPORT) && rnd(50) == 0)
teleport(rs);
{
static FILE *fp;
if ( fp == 0 )
fp = fopen("commands","wb");
if ( fp != 0 )
{
fprintf(stderr,"after command seed.%llu\n",(long long)seed);
fflush(fp);
}
}
}
/*

View File

@@ -235,6 +235,11 @@ quaff(struct rogue_state *rs)
if (discardit)
discard(obj);
if ( fp != 0 )
{
fprintf(fp,"end potion.%d seed.%llu\n",obj->o_which,(long long)seed);
fflush(fp);
}
return;
}