This commit is contained in:
jl777
2019-03-26 03:16:36 -11:00
parent 81263613bb
commit d223563eff

View File

@@ -1035,16 +1035,14 @@ char games_readchar(struct games_state *rs)
if ( rs->replaydone != 0 && counter++ < 3 ) if ( rs->replaydone != 0 && counter++ < 3 )
fprintf(stderr,"replay finished but readchar called\n"); fprintf(stderr,"replay finished but readchar called\n");
rs->replaydone = (uint32_t)time(NULL); rs->replaydone = (uint32_t)time(NULL);
if ( counter < 3 || (counter & 1) == 0 ) return(0);
return('y');
else return(ESCAPE);
} }
if ( rs == 0 || rs->guiflag != 0 ) if ( rs == 0 || rs->guiflag != 0 )
{ {
ch = (char) getch(); ch = (char) getch();
if (ch == 3) if (ch == 3)
{ {
_quit(); //_quit();
return(27); return(27);
} }
if ( rs != 0 && rs->guiflag != 0 ) if ( rs != 0 && rs->guiflag != 0 )