mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-11 02:38:21 +00:00
Update GetTickCount to GetTickCount64
This commit is contained in:
@@ -641,7 +641,7 @@ int main(int argc, char **argv)
|
||||
{
|
||||
autosaveIntervalMs = (DWORD)(serverProperties.autosaveIntervalSeconds * 1000);
|
||||
}
|
||||
DWORD nextAutosaveTick = GetTickCount() + autosaveIntervalMs;
|
||||
DWORD64 nextAutosaveTick = GetTickCount64() + autosaveIntervalMs;
|
||||
bool autosaveRequested = false;
|
||||
ServerRuntime::ServerCli serverCli;
|
||||
serverCli.Start();
|
||||
@@ -668,7 +668,7 @@ int main(int argc, char **argv)
|
||||
break;
|
||||
}
|
||||
|
||||
DWORD now = GetTickCount();
|
||||
DWORD64 now = GetTickCount64();
|
||||
if ((LONG)(now - nextAutosaveTick) >= 0)
|
||||
{
|
||||
if (app.GetXuiServerAction(kServerActionPad) == eXuiServerAction_Idle && !ConsoleSaveFileOriginal::hasPendingBackgroundSave())
|
||||
|
||||
Reference in New Issue
Block a user