Remove accidental line, add comment

This commit is contained in:
notafile 2019-05-19 17:07:57 +02:00
parent a3e4810a18
commit 6e24902324
2 changed files with 4 additions and 1 deletions

View File

@ -722,7 +722,6 @@ namespace spades {
}
void NetClient::HandleExtensionPacket(spades::client::NetPacketReader& reader) {
std::unordered_map<uint8_t, uint8_t> implementedExtensions ( {{192, 1}, {120, 1}} );
int ext_count = reader.ReadByte();
for (int i = 0; i < ext_count; i++) {
int ext_id = reader.ReadByte();

View File

@ -95,7 +95,11 @@ namespace spades {
std::shared_ptr<GameProperties> properties;
int protocolVersion;
// extensions supported by both client and server
// map of extension id -> version
std::unordered_map<uint8_t, uint8_t> extensions;
// extensions implemented in this client
// map of extension id -> version
std::unordered_map<uint8_t, uint8_t> implementedExtensions {
{ExtensionType128Player, 1},
};