remove duplicate handling of VersionGet

This commit is contained in:
NotAFile 2019-05-04 20:21:44 +02:00
parent 2ecd3ced44
commit 49a4c0dd4f

View File

@ -592,15 +592,13 @@ namespace spades {
throw;
}
HandleGamePacket(reader);
} else if (reader.GetType() == PacketTypeVersionGet) {
// Packets that should be handled now even when
// the map is downloading
HandleGamePacket(reader);
} else if (reader.GetType() != PacketTypeWeaponReload) {
} else if (reader.GetType() == PacketTypeWeaponReload) {
// Drop the reload packet. Pyspades does not
// cancel the reload packets on map change and
// they would cause an error if we would
// process them
} else {
// Save the packet for later
savedPackets.push_back(reader.GetData());
}
}