(45f083a5a) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
This commit is contained in:
@@ -171,9 +171,12 @@ namespace Barotrauma
|
||||
newVelocity = new Vector2(
|
||||
msg.ReadRangedSingle(-MaxVel, MaxVel, 12),
|
||||
msg.ReadRangedSingle(-MaxVel, MaxVel, 12));
|
||||
newVelocity = NetConfig.Quantize(newVelocity, -MaxVel, MaxVel, 12);
|
||||
|
||||
if (!fixedRotation)
|
||||
{
|
||||
newAngularVelocity = msg.ReadRangedSingle(-MaxAngularVel, MaxAngularVel, 8);
|
||||
newAngularVelocity = NetConfig.Quantize(newAngularVelocity.Value, -MaxAngularVel, MaxAngularVel, 8);
|
||||
}
|
||||
}
|
||||
msg.ReadPadBits();
|
||||
|
||||
Reference in New Issue
Block a user