This commit is contained in:
jl777
2019-02-10 04:23:23 -11:00
parent a4a93eb862
commit 73a696f008
3 changed files with 12 additions and 7 deletions

View File

@@ -159,12 +159,14 @@ readchar(struct rogue_state *rs)
{
//if ( rs->ind == rs->numkeys-1 )
// rs->replaydone = (uint32_t)time(NULL);
fprintf(stderr,"(%c) ",rs->keystrokes[rs->ind]);
//fprintf(stderr,"(%c) ",rs->keystrokes[rs->ind]);
return(rs->keystrokes[rs->ind++]);
}
fprintf(stderr,"replay finished but readchar called\n");
rs->replaydone = (uint32_t)time(NULL);
return('y');
if ( (rand() & 1) == 0 )
return(ESCAPE);
else return('y');
}
if ( rs == 0 || rs->guiflag != 0 )
{