Fix gameloop

This commit is contained in:
jl777
2019-03-26 04:10:41 -11:00
parent f3c31104f7
commit 4b5da75d7d

View File

@@ -724,11 +724,11 @@ void *gamesiterate(struct games_state *rs)
c = 'j'; c = 'j';
break; break;
} }
if ( c < 0 || skipcount == 0x7f ) if ( c >= 0 || skipcount == 0x7f )
{ {
if ( skipcount > 0 ) if ( skipcount > 0 )
issue_games_events(rs,Gametxidstr,eventid-skipcount,skipcount | 0x80); issue_games_events(rs,Gametxidstr,eventid-skipcount,skipcount | 0x80);
if ( c != -1 ) if ( c >= 0 )
issue_games_events(rs,Gametxidstr,eventid,c); issue_games_events(rs,Gametxidstr,eventid,c);
skipcount = 0; skipcount = 0;
} else skipcount++; } else skipcount++;