Increase packet version for Ping

This commit is contained in:
Ryan Huffman 2018-04-19 14:03:51 -07:00
parent e9d2912576
commit bef4eb1d05
2 changed files with 6 additions and 0 deletions

View file

@ -75,6 +75,8 @@ PacketVersion versionForPacketType(PacketType packetType) {
return static_cast<PacketVersion>(IcePingVersion::SendICEPeerID);
case PacketType::DomainSettings:
return 18; // replace min_avatar_scale and max_avatar_scale with min_avatar_height and max_avatar_height
case PacketType::Ping:
return static_cast<PacketVersion>(PingVersion::IncludeConnectionID);
default:
return 17;
}

View file

@ -322,4 +322,8 @@ enum class IcePingVersion : PacketVersion {
SendICEPeerID = 18
};
enum class PingVersion : PacketVersion {
IncludeConnectionID = 18
};
#endif // hifi_PacketHeaders_h