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

@@ -5,7 +5,7 @@
#include "RespawnPacket.h"
#include "LevelType.h"
RespawnPacket::RespawnPacket()
RespawnPacket::RespawnPacket()
{
this->dimension = 0;
this->difficulty = 1;
@@ -19,7 +19,7 @@ RespawnPacket::RespawnPacket()
m_hellScale = HELL_LEVEL_MAX_SCALE;
}
RespawnPacket::RespawnPacket(char dimension, __int64 mapSeed, int mapHeight, GameType *playerGameType, char difficulty, LevelType *pLevelType, bool newSeaLevel, int newEntityId, int xzSize, int hellScale)
RespawnPacket::RespawnPacket(char dimension, int64_t mapSeed, int mapHeight, GameType *playerGameType, char difficulty, LevelType *pLevelType, bool newSeaLevel, int newEntityId, int xzSize, int hellScale)
{
this->dimension = dimension;
this->mapSeed = mapSeed;
@@ -35,7 +35,7 @@ RespawnPacket::RespawnPacket(char dimension, __int64 mapSeed, int mapHeight, Gam
}
void RespawnPacket::handle(PacketListener *listener)
void RespawnPacket::handle(PacketListener *listener)
{
listener->handleRespawn(shared_from_this());
}
@@ -47,7 +47,7 @@ void RespawnPacket::read(DataInputStream *dis) //throws IOException
mapHeight = dis->readShort();
wstring typeName = readUtf(dis, 16);
m_pLevelType = LevelType::getLevelType(typeName);
if (m_pLevelType == NULL)
if (m_pLevelType == NULL)
{
m_pLevelType = LevelType::lvl_normal;
}
@@ -63,16 +63,16 @@ void RespawnPacket::read(DataInputStream *dis) //throws IOException
}
void RespawnPacket::write(DataOutputStream *dos) //throws IOException
void RespawnPacket::write(DataOutputStream *dos) //throws IOException
{
dos->writeByte(dimension);
dos->writeByte(playerGameType->getId());
dos->writeShort(mapHeight);
if (m_pLevelType == NULL)
if (m_pLevelType == NULL)
{
writeUtf(L"", dos);
}
else
}
else
{
writeUtf(m_pLevelType->getGeneratorName(), dos);
}
@@ -86,10 +86,10 @@ void RespawnPacket::write(DataOutputStream *dos) //throws IOException
#endif
}
int RespawnPacket::getEstimatedSize()
int RespawnPacket::getEstimatedSize()
{
int length=0;
if (m_pLevelType != NULL)
if (m_pLevelType != NULL)
{
length = (int)m_pLevelType->getGeneratorName().length();
}