This commit is contained in:
jl777
2019-03-13 07:52:57 -11:00
parent 00955f71b0
commit 784e1cb127
2 changed files with 2 additions and 2 deletions

View File

@@ -160,7 +160,7 @@ 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 )

View File

@@ -992,13 +992,13 @@ char *rogue_extractgame(int32_t makefiles,char *str,int32_t *numkeysp,std::vecto
} }
//fprintf(stderr,"call replay2\n"); //fprintf(stderr,"call replay2\n");
num = rogue_replay2(newplayer,seed,keystrokes,numkeys,playerdata.size()==0?0:&P,0); num = rogue_replay2(newplayer,seed,keystrokes,numkeys,playerdata.size()==0?0:&P,0);
//fprintf(stderr,"back replay2\n");
newdata.resize(num); newdata.resize(num);
for (i=0; i<num; i++) for (i=0; i<num; i++)
{ {
newdata[i] = newplayer[i]; newdata[i] = newplayer[i];
((uint8_t *)&endP)[i] = newplayer[i]; ((uint8_t *)&endP)[i] = newplayer[i];
} }
fprintf(stderr,"back replay2 gold.%d\n",endP.gold);
if ( endP.gold <= 0 || endP.hitpoints <= 0 || (endP.strength&0xffff) <= 0 || endP.level <= 0 || endP.experience <= 0 || endP.dungeonlevel <= 0 ) if ( endP.gold <= 0 || endP.hitpoints <= 0 || (endP.strength&0xffff) <= 0 || endP.level <= 0 || endP.experience <= 0 || endP.dungeonlevel <= 0 )
{ {
sprintf(str,"zero value character was killed -> no playerdata\n"); sprintf(str,"zero value character was killed -> no playerdata\n");