fix playerid 32 bug?
This commit is contained in:
parent
6f71f92a25
commit
d6b78ac6c4
@ -423,7 +423,7 @@ namespace spades {
|
||||
NetPacketReader reader(event.packet);
|
||||
reader.DumpDebug();
|
||||
if(reader.GetType() != PacketTypeMapStart){
|
||||
SPRaise("Unexpeted packet: %d", (int)reader.GetType());
|
||||
SPRaise("Unexpected packet: %d", (int)reader.GetType());
|
||||
}
|
||||
|
||||
mapSize = reader.ReadInt();
|
||||
@ -953,6 +953,10 @@ namespace spades {
|
||||
std::string name = reader.ReadRemainingString();
|
||||
// TODO: decode name?
|
||||
|
||||
if( pId < 0 || pId >= 32 ) {
|
||||
SPLog( "Ignoring player 32 (bug in pyspades?: %s)", name.c_str() );
|
||||
break;
|
||||
}
|
||||
WeaponType wType;
|
||||
switch(weapon){
|
||||
case 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user