Log seed
This commit is contained in:
@@ -160,14 +160,14 @@ 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 ( 0 )
|
if ( 1 )
|
||||||
{
|
{
|
||||||
static FILE *fp; static int32_t counter;
|
static FILE *fp; static int32_t counter;
|
||||||
if ( fp == 0 )
|
if ( fp == 0 )
|
||||||
fp = fopen("log","wb");
|
fp = fopen("log","wb");
|
||||||
if ( fp != 0 )
|
if ( fp != 0 )
|
||||||
{
|
{
|
||||||
fprintf(fp,"%d: (%c) hp.%d num.%d\n",counter,c,pstats.s_hpt,num_packitems(rs));
|
fprintf(fp,"%d: (%c) hp.%d num.%d gold.%d seed.%llu\n",counter,c,pstats.s_hpt,num_packitems(rs),purse,(long long)seed);
|
||||||
fflush(fp);
|
fflush(fp);
|
||||||
counter++;
|
counter++;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ new_level(struct rogue_state *rs)
|
|||||||
PLACE *pp;
|
PLACE *pp;
|
||||||
char *sp;
|
char *sp;
|
||||||
int i;
|
int i;
|
||||||
|
if ( 0 )
|
||||||
{
|
{
|
||||||
static FILE *fp;
|
static FILE *fp;
|
||||||
if ( fp == 0 )
|
if ( fp == 0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user