--- np2/win9xc/np2.cpp 2003/10/18 10:00:29 1.2 +++ np2/win9xc/np2.cpp 2003/10/25 16:01:21 1.5 @@ -756,8 +756,6 @@ int WINAPI WinMain(HINSTANCE hInstance, srand((unsigned)time(NULL)); -// np2arg_analize(lpszCmdLine); - if ((hwndorg = FindWindow(szClassName, NULL)) != NULL) { ShowWindow(hwndorg, SW_RESTORE); SetForegroundWindow(hwndorg); @@ -930,21 +928,29 @@ int WINAPI WinMain(HINSTANCE hInstance, } else { // auto skip if (!waitcnt) { + UINT cnt; joy_flash(); mouse_callback(); pccore_exec(framecnt == 0); framecnt++; - if (timing_getcount() < framecnt) { + cnt = timing_getcount(); + if (framecnt > cnt) { waitcnt = framecnt; if (framemax > 1) { framemax--; } } else if (framecnt >= framemax) { - waitcnt = framecnt; if (framemax < 12) { framemax++; } + if (cnt >= 12) { + timing_reset(); + } + else { + timing_setcount(cnt - framecnt); + } + processwait(0); } } else {