s/WriteDeltaLong/WriteDeltaInt/

to match the return type
This commit is contained in:
dhewg 2012-06-28 13:34:02 +02:00 committed by Daniel Gibson
parent ae319dbe4a
commit 8cd1580d60
5 changed files with 8 additions and 8 deletions

View file

@ -676,7 +676,7 @@ void idGameLocal::ServerWriteSnapshot( int clientNum, int sequence, idBitMsg &ms
gameLocal.pvs.WritePVS( pvsHandle, msg ); gameLocal.pvs.WritePVS( pvsHandle, msg );
#endif #endif
for ( i = 0; i < ENTITY_PVS_SIZE; i++ ) { 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 // free the PVS

View file

@ -2012,7 +2012,7 @@ void idPhysics_Player::WriteToSnapshot( idBitMsgDelta &msg ) const {
msg.WriteDeltaFloat( 0.0f, current.stepUp ); msg.WriteDeltaFloat( 0.0f, current.stepUp );
msg.WriteBits( current.movementType, PLAYER_MOVEMENT_TYPE_BITS ); msg.WriteBits( current.movementType, PLAYER_MOVEMENT_TYPE_BITS );
msg.WriteBits( current.movementFlags, PLAYER_MOVEMENT_FLAGS_BITS ); msg.WriteBits( current.movementFlags, PLAYER_MOVEMENT_FLAGS_BITS );
msg.WriteDeltaLong( 0, current.movementTime ); msg.WriteDeltaInt( 0, current.movementTime );
} }
/* /*

View file

@ -662,7 +662,7 @@ void idGameLocal::ServerWriteSnapshot( int clientNum, int sequence, idBitMsg &ms
gameLocal.pvs.WritePVS( pvsHandle, msg ); gameLocal.pvs.WritePVS( pvsHandle, msg );
#endif #endif
for ( i = 0; i < ENTITY_PVS_SIZE; i++ ) { 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 // free the PVS

View file

@ -2012,7 +2012,7 @@ void idPhysics_Player::WriteToSnapshot( idBitMsgDelta &msg ) const {
msg.WriteDeltaFloat( 0.0f, current.stepUp ); msg.WriteDeltaFloat( 0.0f, current.stepUp );
msg.WriteBits( current.movementType, PLAYER_MOVEMENT_TYPE_BITS ); msg.WriteBits( current.movementType, PLAYER_MOVEMENT_TYPE_BITS );
msg.WriteBits( current.movementFlags, PLAYER_MOVEMENT_FLAGS_BITS ); msg.WriteBits( current.movementFlags, PLAYER_MOVEMENT_FLAGS_BITS );
msg.WriteDeltaLong( 0, current.movementTime ); msg.WriteDeltaInt( 0, current.movementTime );
} }
/* /*

View file

@ -97,7 +97,7 @@ public:
void WriteDeltaChar( int oldValue, int newValue ); void WriteDeltaChar( int oldValue, int newValue );
void WriteDeltaByte( int oldValue, int newValue ); void WriteDeltaByte( int oldValue, int newValue );
void WriteDeltaShort( 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 );
void WriteDeltaFloat( float oldValue, float newValue, int exponentBits, int mantissaBits ); void WriteDeltaFloat( float oldValue, float newValue, int exponentBits, int mantissaBits );
void WriteDeltaByteCounter( int oldValue, int newValue ); void WriteDeltaByteCounter( int oldValue, int newValue );
@ -333,7 +333,7 @@ ID_INLINE void idBitMsg::WriteDeltaShort( int oldValue, int newValue ) {
WriteDelta( oldValue, newValue, -16 ); 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 ); WriteDelta( oldValue, newValue, 32 );
} }
@ -467,7 +467,7 @@ public:
void WriteDeltaChar( int oldValue, int newValue ); void WriteDeltaChar( int oldValue, int newValue );
void WriteDeltaByte( int oldValue, int newValue ); void WriteDeltaByte( int oldValue, int newValue );
void WriteDeltaShort( 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 );
void WriteDeltaFloat( float oldValue, float newValue, int exponentBits, int mantissaBits ); void WriteDeltaFloat( float oldValue, float newValue, int exponentBits, int mantissaBits );
void WriteDeltaByteCounter( int oldValue, int newValue ); void WriteDeltaByteCounter( int oldValue, int newValue );
@ -592,7 +592,7 @@ ID_INLINE void idBitMsgDelta::WriteDeltaShort( int oldValue, int newValue ) {
WriteDelta( oldValue, newValue, -16 ); 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 ); WriteDelta( oldValue, newValue, 32 );
} }