Update GetTickCount to GetTickCount64

This commit is contained in:
GabsPuNs
2026-05-11 00:21:44 -04:00
parent 6829fc2e4a
commit 73ab0cb28b
16 changed files with 50 additions and 49 deletions

View File

@@ -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())