don't unecessairly convert to string

This commit is contained in:
Aaron Kimbre 2025-01-03 09:27:48 -06:00
parent a5e8fd86ac
commit 7a99e8ee6b
2 changed files with 4 additions and 4 deletions

View File

@ -24,9 +24,9 @@ void to_json(json& data, const PlayerData& playerData) {
data["muted"] = playerData.GetIsMuted();
auto& zoneID = data["zone_id"];
zoneID["map_id"] = std::to_string(playerData.zoneID.GetMapID());
zoneID["instance_id"] = std::to_string(playerData.zoneID.GetInstanceID());
zoneID["clone_id"] = std::to_string(playerData.zoneID.GetCloneID());
zoneID["map_id"] = playerData.zoneID.GetMapID();
zoneID["instance_id"] = playerData.zoneID.GetInstanceID();
zoneID["clone_id"] = playerData.zoneID.GetCloneID();
}
void to_json(json& data, const PlayerContainer& playerContainer) {

View File

@ -82,7 +82,7 @@ void AuthPackets::SendHandshake(dServer* server, const SystemAddress& sysAddr, c
if (serverType == ServerType::Auth) bitStream.Write(ServiceId::Auth);
else if (serverType == ServerType::World) bitStream.Write(ServiceId::World);
else bitStream.Write(ServiceId::General);
bitStream.Write<uint64_t>(219818241584);
bitStream.Write<uint64_t>(219818307120);
server->Send(bitStream, sysAddr, false);
}