Test
This commit is contained in:
@@ -160,7 +160,7 @@ readchar(struct rogue_state *rs)
|
||||
if ( rs->ind < rs->numkeys )
|
||||
{
|
||||
c = rs->keystrokes[rs->ind++];
|
||||
if ( 0 )
|
||||
if ( 1 )
|
||||
{
|
||||
static FILE *fp; static int32_t counter;
|
||||
if ( fp == 0 )
|
||||
|
||||
@@ -992,13 +992,13 @@ char *rogue_extractgame(int32_t makefiles,char *str,int32_t *numkeysp,std::vecto
|
||||
}
|
||||
//fprintf(stderr,"call replay2\n");
|
||||
num = rogue_replay2(newplayer,seed,keystrokes,numkeys,playerdata.size()==0?0:&P,0);
|
||||
//fprintf(stderr,"back replay2\n");
|
||||
newdata.resize(num);
|
||||
for (i=0; i<num; i++)
|
||||
{
|
||||
newdata[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 )
|
||||
{
|
||||
sprintf(str,"zero value character was killed -> no playerdata\n");
|
||||
|
||||
Reference in New Issue
Block a user