GrabLimb type is written in character network messages as byte instead of UInt16
This commit is contained in:
@@ -358,7 +358,7 @@ namespace Barotrauma
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
LimbType grabLimb = (LimbType)msg.ReadUInt16();
|
||||
LimbType grabLimb = (LimbType)msg.ReadByte();
|
||||
if (c.Character != this)
|
||||
{
|
||||
#if DEBUG
|
||||
@@ -449,7 +449,7 @@ namespace Barotrauma
|
||||
if (AnimController is HumanoidAnimController)
|
||||
{
|
||||
tempBuffer.Write(((HumanoidAnimController)AnimController).Crouching);
|
||||
tempBuffer.Write((UInt16)AnimController.GrabLimb);
|
||||
tempBuffer.Write((byte)AnimController.GrabLimb);
|
||||
}
|
||||
|
||||
bool hasAttackLimb = AnimController.Limbs.Any(l => l != null && l.attack != null);
|
||||
|
||||
Reference in New Issue
Block a user