Browse Source

rs->replaydone

jl777
jl777 5 years ago
parent
commit
0d7dbc3929
  1. 4
      src/cc/tetris.c

4
src/cc/tetris.c

@ -698,6 +698,8 @@ void *gamesiterate(struct games_state *rs)
}
else
{
if ( rs->replaydone != 0 )
break;
if ( rs->sleeptime != 0 )
{
sleep_milli(1);
@ -707,7 +709,7 @@ void *gamesiterate(struct games_state *rs)
if ( skipcount == 0 )
{
c = games_readevent(rs);
fprintf(stderr,"%04x\n",c);
fprintf(stderr,"%04x score.%d level.%d\n",c,tg->score,tg->level);
if ( (c & 0x4000) == 0x4000 )
{
skipcount = (c & 0x3fff);

Loading…
Cancel
Save