2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-30 15:38:05 +03:00

HLDS Launcher: Fix pingboost

This commit is contained in:
s1lent 2017-02-14 03:51:06 +07:00
parent 69bdbc2575
commit 5eb2498ced
3 changed files with 5 additions and 4 deletions

View File

@ -181,7 +181,7 @@ BOOL WriteText(LPCTSTR szText)
return TRUE; return TRUE;
} }
unsigned _stdcall RequestProc(void *arg) unsigned __stdcall RequestProc(void *arg)
{ {
int *pBuffer; int *pBuffer;
DWORD dwRet; DWORD dwRet;

View File

@ -104,6 +104,7 @@ int RunServer()
RunVGUIFrame(); RunVGUIFrame();
#ifdef _WIN32
// TODO: finish me! // TODO: finish me!
/*if (g_bVGui) /*if (g_bVGui)
{ {
@ -123,6 +124,7 @@ int RunServer()
strncpy(szConfigDir, "platform/config", sizeof(szConfigDir)); strncpy(szConfigDir, "platform/config", sizeof(szConfigDir));
} }
}*/ }*/
#endif // _WIN32
RunVGUIFrame(); RunVGUIFrame();
@ -134,7 +136,7 @@ int RunServer()
RunVGUIFrame(); RunVGUIFrame();
bool bDone = false; bool bDone = false;
while (1) while (true)
{ {
if (bDone) if (bDone)
break; break;
@ -159,7 +161,6 @@ int RunServer()
if (gbAppHasBeenTerminated) if (gbAppHasBeenTerminated)
break; break;
if (g_bVGui) if (g_bVGui)
{ {
RunVGUIFrame(); RunVGUIFrame();

View File

@ -40,7 +40,7 @@ volatile bool g_bPaused = false;
void CSys::Sleep(int msec) void CSys::Sleep(int msec)
{ {
usleep(msec * 1000); Sys_Sleep(msec);
} }
void Sleep_Old(int msec) void Sleep_Old(int msec)