clang-format
This commit is contained in:
parent
6e24902324
commit
6f59b7e3fd
@ -721,7 +721,7 @@ namespace spades {
|
||||
}
|
||||
}
|
||||
|
||||
void NetClient::HandleExtensionPacket(spades::client::NetPacketReader& reader) {
|
||||
void NetClient::HandleExtensionPacket(spades::client::NetPacketReader &reader) {
|
||||
int ext_count = reader.ReadByte();
|
||||
for (int i = 0; i < ext_count; i++) {
|
||||
int ext_id = reader.ReadByte();
|
||||
@ -1784,8 +1784,8 @@ namespace spades {
|
||||
SPADES_MARK_FUNCTION();
|
||||
NetPacketWriter wri(PacketTypeExtensionInfo);
|
||||
wri.Write(static_cast<uint8_t>(extensions.size()));
|
||||
for (auto& i: extensions) {
|
||||
wri.Write(static_cast<uint8_t>(i.first)); // ext id
|
||||
for (auto &i : extensions) {
|
||||
wri.Write(static_cast<uint8_t>(i.first)); // ext id
|
||||
wri.Write(static_cast<uint8_t>(i.second)); // ext version
|
||||
}
|
||||
SPLog("Sending extension support.");
|
||||
|
@ -100,8 +100,8 @@ namespace spades {
|
||||
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},
|
||||
std::unordered_map<uint8_t, uint8_t> implementedExtensions{
|
||||
{ExtensionType128Player, 1},
|
||||
};
|
||||
|
||||
class BandwidthMonitor {
|
||||
|
Loading…
x
Reference in New Issue
Block a user