This commit is contained in:
jl777
2019-02-17 22:26:03 -11:00
parent ae05cc1f68
commit f513e5d1f5
2 changed files with 7 additions and 3 deletions

View File

@@ -158,7 +158,9 @@ readchar(struct rogue_state *rs)
{
static uint32_t counter;
if ( rs->ind < rs->numkeys )
{
return(rs->keystrokes[rs->ind++]);
}
if ( rs->replaydone != 0 && counter++ < 3 )
fprintf(stderr,"replay finished but readchar called\n");
rs->replaydone = (uint32_t)time(NULL);