mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-24 13:31:18 +00:00
s/ReadDeltaLong/ReadDeltaInt/
to match the argument type
This commit is contained in:
parent
8cd1580d60
commit
8dfc6df02a
5 changed files with 8 additions and 8 deletions
|
@ -1172,7 +1172,7 @@ void idGameLocal::ClientReadSnapshot( int clientNum, int sequence, const int gam
|
||||||
gameLocal.pvs.ReadPVS( pvsHandle, msg );
|
gameLocal.pvs.ReadPVS( pvsHandle, msg );
|
||||||
#endif
|
#endif
|
||||||
for ( i = 0; i < ENTITY_PVS_SIZE; i++ ) {
|
for ( i = 0; i < ENTITY_PVS_SIZE; i++ ) {
|
||||||
snapshot->pvs[i] = msg.ReadDeltaLong( clientPVS[clientNum][i] );
|
snapshot->pvs[i] = msg.ReadDeltaInt( clientPVS[clientNum][i] );
|
||||||
}
|
}
|
||||||
|
|
||||||
// add entities in the PVS that haven't changed since the last applied snapshot
|
// add entities in the PVS that haven't changed since the last applied snapshot
|
||||||
|
|
|
@ -2036,7 +2036,7 @@ void idPhysics_Player::ReadFromSnapshot( const idBitMsgDelta &msg ) {
|
||||||
current.stepUp = msg.ReadDeltaFloat( 0.0f );
|
current.stepUp = msg.ReadDeltaFloat( 0.0f );
|
||||||
current.movementType = msg.ReadBits( PLAYER_MOVEMENT_TYPE_BITS );
|
current.movementType = msg.ReadBits( PLAYER_MOVEMENT_TYPE_BITS );
|
||||||
current.movementFlags = msg.ReadBits( PLAYER_MOVEMENT_FLAGS_BITS );
|
current.movementFlags = msg.ReadBits( PLAYER_MOVEMENT_FLAGS_BITS );
|
||||||
current.movementTime = msg.ReadDeltaLong( 0 );
|
current.movementTime = msg.ReadDeltaInt( 0 );
|
||||||
|
|
||||||
if ( clipModel ) {
|
if ( clipModel ) {
|
||||||
clipModel->Link( gameLocal.clip, self, 0, current.origin, clipModel->GetAxis() );
|
clipModel->Link( gameLocal.clip, self, 0, current.origin, clipModel->GetAxis() );
|
||||||
|
|
|
@ -1144,7 +1144,7 @@ void idGameLocal::ClientReadSnapshot( int clientNum, int sequence, const int gam
|
||||||
gameLocal.pvs.ReadPVS( pvsHandle, msg );
|
gameLocal.pvs.ReadPVS( pvsHandle, msg );
|
||||||
#endif
|
#endif
|
||||||
for ( i = 0; i < ENTITY_PVS_SIZE; i++ ) {
|
for ( i = 0; i < ENTITY_PVS_SIZE; i++ ) {
|
||||||
snapshot->pvs[i] = msg.ReadDeltaLong( clientPVS[clientNum][i] );
|
snapshot->pvs[i] = msg.ReadDeltaInt( clientPVS[clientNum][i] );
|
||||||
}
|
}
|
||||||
|
|
||||||
// add entities in the PVS that haven't changed since the last applied snapshot
|
// add entities in the PVS that haven't changed since the last applied snapshot
|
||||||
|
|
|
@ -2036,7 +2036,7 @@ void idPhysics_Player::ReadFromSnapshot( const idBitMsgDelta &msg ) {
|
||||||
current.stepUp = msg.ReadDeltaFloat( 0.0f );
|
current.stepUp = msg.ReadDeltaFloat( 0.0f );
|
||||||
current.movementType = msg.ReadBits( PLAYER_MOVEMENT_TYPE_BITS );
|
current.movementType = msg.ReadBits( PLAYER_MOVEMENT_TYPE_BITS );
|
||||||
current.movementFlags = msg.ReadBits( PLAYER_MOVEMENT_FLAGS_BITS );
|
current.movementFlags = msg.ReadBits( PLAYER_MOVEMENT_FLAGS_BITS );
|
||||||
current.movementTime = msg.ReadDeltaLong( 0 );
|
current.movementTime = msg.ReadDeltaInt( 0 );
|
||||||
|
|
||||||
if ( clipModel ) {
|
if ( clipModel ) {
|
||||||
clipModel->Link( gameLocal.clip, self, 0, current.origin, clipModel->GetAxis() );
|
clipModel->Link( gameLocal.clip, self, 0, current.origin, clipModel->GetAxis() );
|
||||||
|
|
|
@ -126,7 +126,7 @@ public:
|
||||||
int ReadDeltaChar( int oldValue ) const;
|
int ReadDeltaChar( int oldValue ) const;
|
||||||
int ReadDeltaByte( int oldValue ) const;
|
int ReadDeltaByte( int oldValue ) const;
|
||||||
int ReadDeltaShort( int oldValue ) const;
|
int ReadDeltaShort( int oldValue ) const;
|
||||||
int ReadDeltaLong( int oldValue ) const;
|
int ReadDeltaInt( int oldValue ) const;
|
||||||
float ReadDeltaFloat( float oldValue ) const;
|
float ReadDeltaFloat( float oldValue ) const;
|
||||||
float ReadDeltaFloat( float oldValue, int exponentBits, int mantissaBits ) const;
|
float ReadDeltaFloat( float oldValue, int exponentBits, int mantissaBits ) const;
|
||||||
int ReadDeltaByteCounter( int oldValue ) const;
|
int ReadDeltaByteCounter( int oldValue ) const;
|
||||||
|
@ -415,7 +415,7 @@ ID_INLINE int idBitMsg::ReadDeltaShort( int oldValue ) const {
|
||||||
return (short)ReadDelta( oldValue, -16 );
|
return (short)ReadDelta( oldValue, -16 );
|
||||||
}
|
}
|
||||||
|
|
||||||
ID_INLINE int idBitMsg::ReadDeltaLong( int oldValue ) const {
|
ID_INLINE int idBitMsg::ReadDeltaInt( int oldValue ) const {
|
||||||
return ReadDelta( oldValue, 32 );
|
return ReadDelta( oldValue, 32 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -492,7 +492,7 @@ public:
|
||||||
int ReadDeltaChar( int oldValue ) const;
|
int ReadDeltaChar( int oldValue ) const;
|
||||||
int ReadDeltaByte( int oldValue ) const;
|
int ReadDeltaByte( int oldValue ) const;
|
||||||
int ReadDeltaShort( int oldValue ) const;
|
int ReadDeltaShort( int oldValue ) const;
|
||||||
int ReadDeltaLong( int oldValue ) const;
|
int ReadDeltaInt( int oldValue ) const;
|
||||||
float ReadDeltaFloat( float oldValue ) const;
|
float ReadDeltaFloat( float oldValue ) const;
|
||||||
float ReadDeltaFloat( float oldValue, int exponentBits, int mantissaBits ) const;
|
float ReadDeltaFloat( float oldValue, int exponentBits, int mantissaBits ) const;
|
||||||
int ReadDeltaByteCounter( int oldValue ) const;
|
int ReadDeltaByteCounter( int oldValue ) const;
|
||||||
|
@ -661,7 +661,7 @@ ID_INLINE int idBitMsgDelta::ReadDeltaShort( int oldValue ) const {
|
||||||
return (short)ReadDelta( oldValue, -16 );
|
return (short)ReadDelta( oldValue, -16 );
|
||||||
}
|
}
|
||||||
|
|
||||||
ID_INLINE int idBitMsgDelta::ReadDeltaLong( int oldValue ) const {
|
ID_INLINE int idBitMsgDelta::ReadDeltaInt( int oldValue ) const {
|
||||||
return ReadDelta( oldValue, 32 );
|
return ReadDelta( oldValue, 32 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue