Remove all MSVC __int64 (#742)

This commit is contained in:
void_17
2026-03-07 03:31:30 +07:00
committed by GitHub
parent 175fc3824e
commit 988e3042e0
277 changed files with 3672 additions and 3684 deletions

View File

@@ -6,7 +6,7 @@
#include "..\Minecraft.Client\ServerLevel.h"
#include "PortalForcer.h"
PortalForcer::PortalPosition::PortalPosition(int x, int y, int z, __int64 time) : Pos(x, y, z)
PortalForcer::PortalPosition::PortalPosition(int x, int y, int z, int64_t time) : Pos(x, y, z)
{
lastUsed = time;
}
@@ -502,15 +502,15 @@ next_second: continue;
return true;
}
void PortalForcer::tick(__int64 time)
void PortalForcer::tick(int64_t time)
{
if (time % (SharedConstants::TICKS_PER_SECOND * 5) == 0)
{
__int64 cutoff = time - SharedConstants::TICKS_PER_SECOND * 30;
int64_t cutoff = time - SharedConstants::TICKS_PER_SECOND * 30;
for (auto it = cachedPortalKeys.begin(); it != cachedPortalKeys.end();)
{
__int64 key = *it;
int64_t key = *it;
PortalPosition *pos = cachedPortals[key];
if (pos == NULL || pos->lastUsed < cutoff)