Permalink
Browse files

Add extra message loop in idle handler

  • Loading branch information...
botder committed Jan 10, 2019
1 parent bff494d commit a4a09aed0880d1e923c945c93e579e5626aeda21
Showing with 8 additions and 0 deletions.
  1. +8 −0 Client/core/CCore.cpp
@@ -2082,6 +2082,14 @@ void CCore::StaticIdleHandler(void)
// Gets called every game loop, after GTA has been loaded for the first time
void CCore::IdleHandler(void)
{
MSG msg = {0};

while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}

m_bGettingIdleCallsFromMultiplayer = true;
HandleIdlePulse();
}

0 comments on commit a4a09ae

Please sign in to comment.