Attempt to fix yvt/openspades#234.
Starting in d856bcadaa09cf6722547007c3329b43ab1480d7 the client reads one byte less than necessary.
This commit is contained in:
parent
52c3e6bb00
commit
f6d8c22e13
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user