diff --git a/d3xp/Game_network.cpp b/d3xp/Game_network.cpp index 9b43b39..e651cb5 100644 --- a/d3xp/Game_network.cpp +++ b/d3xp/Game_network.cpp @@ -676,7 +676,7 @@ void idGameLocal::ServerWriteSnapshot( int clientNum, int sequence, idBitMsg &ms gameLocal.pvs.WritePVS( pvsHandle, msg ); #endif for ( i = 0; i < ENTITY_PVS_SIZE; i++ ) { - msg.WriteDeltaLong( clientPVS[clientNum][i], snapshot->pvs[i] ); + msg.WriteDeltaInt( clientPVS[clientNum][i], snapshot->pvs[i] ); } // free the PVS diff --git a/d3xp/physics/Physics_Player.cpp b/d3xp/physics/Physics_Player.cpp index 6a74c5e..a2f319d 100644 --- a/d3xp/physics/Physics_Player.cpp +++ b/d3xp/physics/Physics_Player.cpp @@ -2012,7 +2012,7 @@ void idPhysics_Player::WriteToSnapshot( idBitMsgDelta &msg ) const { msg.WriteDeltaFloat( 0.0f, current.stepUp ); msg.WriteBits( current.movementType, PLAYER_MOVEMENT_TYPE_BITS ); msg.WriteBits( current.movementFlags, PLAYER_MOVEMENT_FLAGS_BITS ); - msg.WriteDeltaLong( 0, current.movementTime ); + msg.WriteDeltaInt( 0, current.movementTime ); } /* diff --git a/game/Game_network.cpp b/game/Game_network.cpp index f43c96a..7d712d5 100644 --- a/game/Game_network.cpp +++ b/game/Game_network.cpp @@ -662,7 +662,7 @@ void idGameLocal::ServerWriteSnapshot( int clientNum, int sequence, idBitMsg &ms gameLocal.pvs.WritePVS( pvsHandle, msg ); #endif for ( i = 0; i < ENTITY_PVS_SIZE; i++ ) { - msg.WriteDeltaLong( clientPVS[clientNum][i], snapshot->pvs[i] ); + msg.WriteDeltaInt( clientPVS[clientNum][i], snapshot->pvs[i] ); } // free the PVS diff --git a/game/physics/Physics_Player.cpp b/game/physics/Physics_Player.cpp index 6a74c5e..a2f319d 100644 --- a/game/physics/Physics_Player.cpp +++ b/game/physics/Physics_Player.cpp @@ -2012,7 +2012,7 @@ void idPhysics_Player::WriteToSnapshot( idBitMsgDelta &msg ) const { msg.WriteDeltaFloat( 0.0f, current.stepUp ); msg.WriteBits( current.movementType, PLAYER_MOVEMENT_TYPE_BITS ); msg.WriteBits( current.movementFlags, PLAYER_MOVEMENT_FLAGS_BITS ); - msg.WriteDeltaLong( 0, current.movementTime ); + msg.WriteDeltaInt( 0, current.movementTime ); } /* diff --git a/idlib/BitMsg.h b/idlib/BitMsg.h index 4ea7d7c..5cf9762 100644 --- a/idlib/BitMsg.h +++ b/idlib/BitMsg.h @@ -97,7 +97,7 @@ public: void WriteDeltaChar( int oldValue, int newValue ); void WriteDeltaByte( int oldValue, int newValue ); void WriteDeltaShort( int oldValue, int newValue ); - void WriteDeltaLong( int oldValue, int newValue ); + void WriteDeltaInt( int oldValue, int newValue ); void WriteDeltaFloat( float oldValue, float newValue ); void WriteDeltaFloat( float oldValue, float newValue, int exponentBits, int mantissaBits ); void WriteDeltaByteCounter( int oldValue, int newValue ); @@ -333,7 +333,7 @@ ID_INLINE void idBitMsg::WriteDeltaShort( int oldValue, int newValue ) { WriteDelta( oldValue, newValue, -16 ); } -ID_INLINE void idBitMsg::WriteDeltaLong( int oldValue, int newValue ) { +ID_INLINE void idBitMsg::WriteDeltaInt( int oldValue, int newValue ) { WriteDelta( oldValue, newValue, 32 ); } @@ -467,7 +467,7 @@ public: void WriteDeltaChar( int oldValue, int newValue ); void WriteDeltaByte( int oldValue, int newValue ); void WriteDeltaShort( int oldValue, int newValue ); - void WriteDeltaLong( int oldValue, int newValue ); + void WriteDeltaInt( int oldValue, int newValue ); void WriteDeltaFloat( float oldValue, float newValue ); void WriteDeltaFloat( float oldValue, float newValue, int exponentBits, int mantissaBits ); void WriteDeltaByteCounter( int oldValue, int newValue ); @@ -592,7 +592,7 @@ ID_INLINE void idBitMsgDelta::WriteDeltaShort( int oldValue, int newValue ) { WriteDelta( oldValue, newValue, -16 ); } -ID_INLINE void idBitMsgDelta::WriteDeltaLong( int oldValue, int newValue ) { +ID_INLINE void idBitMsgDelta::WriteDeltaInt( int oldValue, int newValue ) { WriteDelta( oldValue, newValue, 32 ); }