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

@@ -4100,7 +4100,7 @@ void ClientConnection::checkDeferredEntityLinkPackets(int newEntityId)
bool remove = false;
// Only consider recently deferred packets
int tickInterval = GetTickCount() - deferred->m_recievedTick;
uint64_t tickInterval = GetTickCount64() - deferred->m_recievedTick;
if (tickInterval < MAX_ENTITY_LINK_DEFERRAL_INTERVAL)
{
// Note: we assume it's the destination entity
@@ -4126,6 +4126,6 @@ void ClientConnection::checkDeferredEntityLinkPackets(int newEntityId)
ClientConnection::DeferredEntityLinkPacket::DeferredEntityLinkPacket(shared_ptr<SetEntityLinkPacket> packet)
{
m_recievedTick = GetTickCount();
m_recievedTick = GetTickCount64();
m_packet = packet;
}