Remove network compression on floats
This commit is contained in:
parent
171068ec6d
commit
6df60bed54
1 changed files with 20 additions and 0 deletions
|
@ -375,6 +375,10 @@ SendProp SendPropFloat(
|
||||||
{
|
{
|
||||||
SendProp ret;
|
SendProp ret;
|
||||||
|
|
||||||
|
// Remove float compression to avoid errors
|
||||||
|
flags = SPROP_NOSCALE;
|
||||||
|
nBits = 32;
|
||||||
|
|
||||||
if ( varProxy == SendProxy_FloatToFloat )
|
if ( varProxy == SendProxy_FloatToFloat )
|
||||||
{
|
{
|
||||||
Assert( sizeofVar == 0 || sizeofVar == 4 );
|
Assert( sizeofVar == 0 || sizeofVar == 4 );
|
||||||
|
@ -425,6 +429,10 @@ SendProp SendPropVector(
|
||||||
{
|
{
|
||||||
SendProp ret;
|
SendProp ret;
|
||||||
|
|
||||||
|
// Remove float compression to avoid errors
|
||||||
|
flags = SPROP_NOSCALE;
|
||||||
|
nBits = 32;
|
||||||
|
|
||||||
if(varProxy == SendProxy_VectorToVector)
|
if(varProxy == SendProxy_VectorToVector)
|
||||||
{
|
{
|
||||||
Assert(sizeofVar == sizeof(Vector));
|
Assert(sizeofVar == sizeof(Vector));
|
||||||
|
@ -461,6 +469,10 @@ SendProp SendPropVectorXY(
|
||||||
{
|
{
|
||||||
SendProp ret;
|
SendProp ret;
|
||||||
|
|
||||||
|
// Remove float compression to avoid errors
|
||||||
|
flags = SPROP_NOSCALE;
|
||||||
|
nBits = 32;
|
||||||
|
|
||||||
if(varProxy == SendProxy_VectorXYToVectorXY)
|
if(varProxy == SendProxy_VectorXYToVectorXY)
|
||||||
{
|
{
|
||||||
Assert(sizeofVar == sizeof(Vector));
|
Assert(sizeofVar == sizeof(Vector));
|
||||||
|
@ -538,6 +550,10 @@ SendProp SendPropAngle(
|
||||||
Assert(sizeofVar == 4);
|
Assert(sizeofVar == 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove float compression to avoid errors
|
||||||
|
flags = SPROP_NOSCALE;
|
||||||
|
nBits = 32;
|
||||||
|
|
||||||
if ( nBits == 32 )
|
if ( nBits == 32 )
|
||||||
flags |= SPROP_NOSCALE;
|
flags |= SPROP_NOSCALE;
|
||||||
|
|
||||||
|
@ -571,6 +587,10 @@ SendProp SendPropQAngles(
|
||||||
Assert(sizeofVar == 4);
|
Assert(sizeofVar == 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove float compression to avoid errors
|
||||||
|
flags = SPROP_NOSCALE;
|
||||||
|
nBits = 32;
|
||||||
|
|
||||||
if ( nBits == 32 )
|
if ( nBits == 32 )
|
||||||
flags |= SPROP_NOSCALE;
|
flags |= SPROP_NOSCALE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue