mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
Fixed sync_delay so it doesn't render during stalls, but still processes windows messaging.
This commit is contained in:
+15
-14
@@ -2132,20 +2132,21 @@ static void Sync_Delay(void)
|
||||
*/
|
||||
while (FrameTimer) {
|
||||
Color_Cycle();
|
||||
Call_Back();
|
||||
|
||||
if (SpecialDialog == SDLG_NONE) {
|
||||
#ifdef WIN32
|
||||
WWMouse->Erase_Mouse(&HidPage, TRUE);
|
||||
#endif //WIN32
|
||||
KeyNumType input = KN_NONE;
|
||||
int x, y;
|
||||
Map.Input(input, x, y);
|
||||
if (input) {
|
||||
Keyboard_Process(input);
|
||||
}
|
||||
Map.Render();
|
||||
}
|
||||
// Call_Back();
|
||||
//
|
||||
// if (SpecialDialog == SDLG_NONE) {
|
||||
//#ifdef WIN32
|
||||
// WWMouse->Erase_Mouse(&HidPage, TRUE);
|
||||
//#endif //WIN32
|
||||
// KeyNumType input = KN_NONE;
|
||||
// int x, y;
|
||||
// Map.Input(input, x, y);
|
||||
// if (input) {
|
||||
// Keyboard_Process(input);
|
||||
// }
|
||||
// Map.Render();
|
||||
// }
|
||||
SDL_PumpEvents();
|
||||
}
|
||||
animFrameNum+=0.5f; // This is garbage and needs to be fixed with proper delta time bits!!!
|
||||
if (!FrameTimer) {
|
||||
|
||||
Reference in New Issue
Block a user