Starting in d856bcadaa09cf6722547007c3329b43ab1480d7 the client reads
one byte less than necessary.
This commit is contained in:
Marco Schlumpp 2014-04-20 13:00:05 +02:00
parent 52c3e6bb00
commit f6d8c22e13

View File

@ -857,7 +857,7 @@ namespace spades {
if(!GetWorld())
break;
{
//reader.ReadByte(); // skip player Id
reader.ReadByte(); // skip player Id
//Player *p = GetPlayerOrNull(reader.ReadByte());
float fuseLen = reader.ReadFloat();
Vector3 pos, vel;
@ -1495,7 +1495,7 @@ namespace spades {
}
case PacketTypeChangeWeapon:
{
//Player * p = GetPlayerOrNull(reader.ReadByte());
reader.ReadByte();
WeaponType wType;
int weapon = reader.ReadByte();
switch(weapon){