mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-21 12:17:01 +00:00
don't unecessairly convert to string
This commit is contained in:
parent
a5e8fd86ac
commit
7a99e8ee6b
@ -24,9 +24,9 @@ void to_json(json& data, const PlayerData& playerData) {
|
|||||||
data["muted"] = playerData.GetIsMuted();
|
data["muted"] = playerData.GetIsMuted();
|
||||||
|
|
||||||
auto& zoneID = data["zone_id"];
|
auto& zoneID = data["zone_id"];
|
||||||
zoneID["map_id"] = std::to_string(playerData.zoneID.GetMapID());
|
zoneID["map_id"] = playerData.zoneID.GetMapID();
|
||||||
zoneID["instance_id"] = std::to_string(playerData.zoneID.GetInstanceID());
|
zoneID["instance_id"] = playerData.zoneID.GetInstanceID();
|
||||||
zoneID["clone_id"] = std::to_string(playerData.zoneID.GetCloneID());
|
zoneID["clone_id"] = playerData.zoneID.GetCloneID();
|
||||||
}
|
}
|
||||||
|
|
||||||
void to_json(json& data, const PlayerContainer& playerContainer) {
|
void to_json(json& data, const PlayerContainer& playerContainer) {
|
||||||
|
@ -82,7 +82,7 @@ void AuthPackets::SendHandshake(dServer* server, const SystemAddress& sysAddr, c
|
|||||||
if (serverType == ServerType::Auth) bitStream.Write(ServiceId::Auth);
|
if (serverType == ServerType::Auth) bitStream.Write(ServiceId::Auth);
|
||||||
else if (serverType == ServerType::World) bitStream.Write(ServiceId::World);
|
else if (serverType == ServerType::World) bitStream.Write(ServiceId::World);
|
||||||
else bitStream.Write(ServiceId::General);
|
else bitStream.Write(ServiceId::General);
|
||||||
bitStream.Write<uint64_t>(219818241584);
|
bitStream.Write<uint64_t>(219818307120);
|
||||||
|
|
||||||
server->Send(bitStream, sysAddr, false);
|
server->Send(bitStream, sysAddr, false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user