diff --git a/artifacts/ddraw.ini b/artifacts/ddraw.ini index dc3b8751..ddac6516 100644 --- a/artifacts/ddraw.ini +++ b/artifacts/ddraw.ini @@ -461,7 +461,7 @@ PlayIdleAnimOnReload=0 CorpseDeleteTime=6 ;Set to 1 to allow the game to go idle during each input loop, preventing 100% CPU usage -ProcessorIdle=0 +ProcessorIdle=1 ;Set to 1 if using the hero appearance mod ;Set to 2 for backward compatibility with scripts that manually fix obj_art_fid/art_change_fid_num script functions for dude_obj diff --git a/sfall/Modules/MiscPatches.cpp b/sfall/Modules/MiscPatches.cpp index ad27ec12..5af374a4 100644 --- a/sfall/Modules/MiscPatches.cpp +++ b/sfall/Modules/MiscPatches.cpp @@ -961,7 +961,7 @@ void MiscPatches::init() { fo::var::idle_func = reinterpret_cast(Sleep); SafeWrite16(0x4C9F12, 0x7D6A); // push 125 (ms) - if (idle <= 0) idle = IniReader::GetConfigInt("Misc", "ProcessorIdle", -1); + if (idle <= 0) idle = IniReader::GetConfigInt("Misc", "ProcessorIdle", 1); if (idle > 0) MakeJump(0x4C9DA9, GNW95_process_message_hack, 3); // replace hack function from HRP by Mash BlockCall(0x4425E6); // Patch out ereg call diff --git a/sfall/WinProc.cpp b/sfall/WinProc.cpp index 8d3071ea..a28f8c49 100644 --- a/sfall/WinProc.cpp +++ b/sfall/WinProc.cpp @@ -52,7 +52,7 @@ void __stdcall WinProc::MessageWindow() { // Implementation from HRP by Mash void __stdcall WinProc::WaitMessageWindow() { - MsgWaitForMultipleObjectsEx(0, 0, 1, 0xFF, 0); + MsgWaitForMultipleObjectsEx(0, 0, 1, QS_ALLINPUT, 0); MessageWindow(); } diff --git a/sfall/main.cpp b/sfall/main.cpp index 1ec95489..9f3e6599 100644 --- a/sfall/main.cpp +++ b/sfall/main.cpp @@ -124,7 +124,6 @@ static void InitModules() { manager.add(); manager.add(); - manager.add(); manager.add(); manager.add(); @@ -142,6 +141,8 @@ static void InitModules() { manager.add(); manager.add(); manager.add(); + manager.add(); + manager.add(); manager.add(); manager.add(); @@ -152,7 +153,6 @@ static void InitModules() { manager.add(); manager.add(); // should be loaded before PartyControl manager.add(); - manager.add(); manager.add(); manager.add();