diff options
| author | void_17 <61356189+void2012@users.noreply.github.com> | 2026-03-07 03:31:30 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-07 03:31:30 +0700 |
| commit | 988e3042e00485aa7ed3725fe7bfde1da8cf8519 (patch) | |
| tree | cf712d80b4d03eec73f935e0cce23020ddb6f5ef /Minecraft.World/PortalForcer.cpp | |
| parent | 175fc3824e502ecd701c1da2ecd2061d77495693 (diff) | |
Remove all MSVC `__int64` (#742)
Diffstat (limited to 'Minecraft.World/PortalForcer.cpp')
| -rw-r--r-- | Minecraft.World/PortalForcer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Minecraft.World/PortalForcer.cpp b/Minecraft.World/PortalForcer.cpp index b3850807..d0a12988 100644 --- a/Minecraft.World/PortalForcer.cpp +++ b/Minecraft.World/PortalForcer.cpp @@ -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) |
