Commands log
This commit is contained in:
@@ -475,6 +475,16 @@ over:
|
|||||||
search(rs);
|
search(rs);
|
||||||
else if (ISRING(RIGHT, R_TELEPORT) && rnd(50) == 0)
|
else if (ISRING(RIGHT, R_TELEPORT) && rnd(50) == 0)
|
||||||
teleport(rs);
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -235,6 +235,11 @@ quaff(struct rogue_state *rs)
|
|||||||
|
|
||||||
if (discardit)
|
if (discardit)
|
||||||
discard(obj);
|
discard(obj);
|
||||||
|
if ( fp != 0 )
|
||||||
|
{
|
||||||
|
fprintf(fp,"end potion.%d seed.%llu\n",obj->o_which,(long long)seed);
|
||||||
|
fflush(fp);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user