adjust delay timers when resetting frame count

This commit is contained in:
ToadKing 2013-04-26 13:12:45 -04:00
parent 0653a8b5c2
commit 73e4adf8dc

View File

@ -361,6 +361,15 @@ void init_drivers(void)
adjust_system_rates();
// adjust timers first before resetting frame count
for (unsigned i = 0; i < sizeof(g_extern.delay_timer) / sizeof(g_extern.delay_timer[0]); i++)
{
if (g_extern.delay_timer[i] > g_extern.frame_count)
g_extern.delay_timer[i] -= g_extern.frame_count;
else
g_extern.delay_timer[i] = 0;
}
g_extern.frame_count = 0;
init_video_input();