[server] Replace sub_44E9D0() to RakNet::GetTime()

This commit is contained in:
RD42 committed 2023-11-14 22:29:20 +08:00
1 parent 94acb826cb
commit b89b8f4070
3 files changed
+16 -9

No files matched your search

+3 -9
View File
@@ -40,12 +40,6 @@ int iCookieLogging = 1;
extern LONG WINAPI exc_handler(_EXCEPTION_POINTERS* exc_inf);
#endif
int sub_44E9D0()
{
// TODO: sub_44E9D0 W: 0044E9D0 L: 0805FBE0
return 0;
}
//----------------------------------------------------
void ServerPasswordChanged()
@@ -155,7 +149,7 @@ int main (int argc, char** argv)
srand(time(NULL));
_uiRndSrvChallenge = (unsigned int)rand();
unnamed_3 = rand();
unnamed_4 = sub_44E9D0();
unnamed_4 = RakNet::GetTime();
// Create the Console
pConsole = new CConsole();
@@ -279,10 +273,10 @@ int main (int argc, char** argv)
bGameModeFinished = FALSE;
}
if(sub_44E9D0() - unnamed_4 > iConnSeedTime)
if(RakNet::GetTime() - unnamed_4 > iConnSeedTime)
{
unnamed_3 = rand();
unnamed_4 = sub_44E9D0();
unnamed_4 = RakNet::GetTime();
}
SLEEP(iSleep);
+3
View File
@@ -43,6 +43,9 @@
#include <map>
#include <string>
// Raknet
#include "../raknet/GetTime.h"
#include "console.h"
#include "scrhttps.h"
#include "scrtimers.h"
+10
View File
@@ -118,6 +118,16 @@
RelativePath="..\ttmath\ttmathuint_x86.h">
</File>
</Filter>
<Filter
Name="raknet"
Filter="">
<File
RelativePath="..\raknet\GetTime.cpp">
</File>
<File
RelativePath="..\raknet\GetTime.h">
</File>
</Filter>
<File
RelativePath=".\actorpool.cpp">
</File>