fix second Tick call, change loop

This commit is contained in:
Christian Semmler 2023-06-22 14:40:56 +02:00
parent 749a1f419b
commit 1974fdd772
No known key found for this signature in database
GPG Key ID: 086DAA1360BEEE5C

View File

@ -90,14 +90,10 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
} }
if (g_isle) { if (g_isle) {
g_isle->Tick(1); g_isle->Tick(0);
} }
if (g_closed) { while (!g_closed) {
break;
}
do {
if (!PeekMessageA(&msg, NULL, 0, 0, PM_REMOVE)) { if (!PeekMessageA(&msg, NULL, 0, 0, PM_REMOVE)) {
break; break;
} }
@ -134,7 +130,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
} }
goto LAB_00401bc7; goto LAB_00401bc7;
} }
} while (!g_closed); }
} }
DestroyWindow(window); DestroyWindow(window);