mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-21 20:21:19 +00:00
s/ReadDeltaLongCounter/ReadDeltaIntCounter/
to match the return type
This commit is contained in:
parent
c971755d98
commit
ae319dbe4a
2 changed files with 8 additions and 8 deletions
|
@ -536,10 +536,10 @@ int idBitMsg::ReadDeltaShortCounter( int oldValue ) const {
|
|||
|
||||
/*
|
||||
================
|
||||
idBitMsg::ReadDeltaLongCounter
|
||||
idBitMsg::ReadDeltaIntCounter
|
||||
================
|
||||
*/
|
||||
int idBitMsg::ReadDeltaLongCounter( int oldValue ) const {
|
||||
int idBitMsg::ReadDeltaIntCounter( int oldValue ) const {
|
||||
int i, newValue;
|
||||
|
||||
i = ReadBits( 5 );
|
||||
|
@ -1041,21 +1041,21 @@ int idBitMsgDelta::ReadDeltaShortCounter( int oldValue ) const {
|
|||
|
||||
/*
|
||||
================
|
||||
idBitMsgDelta::ReadDeltaLongCounter
|
||||
idBitMsgDelta::ReadDeltaIntCounter
|
||||
================
|
||||
*/
|
||||
int idBitMsgDelta::ReadDeltaLongCounter( int oldValue ) const {
|
||||
int idBitMsgDelta::ReadDeltaIntCounter( int oldValue ) const {
|
||||
int value;
|
||||
|
||||
if ( !base ) {
|
||||
value = readDelta->ReadDeltaLongCounter( oldValue );
|
||||
value = readDelta->ReadDeltaIntCounter( oldValue );
|
||||
changed = true;
|
||||
} else {
|
||||
int baseValue = base->ReadBits( 32 );
|
||||
if ( !readDelta || readDelta->ReadBits( 1 ) == 0 ) {
|
||||
value = baseValue;
|
||||
} else {
|
||||
value = readDelta->ReadDeltaLongCounter( oldValue );
|
||||
value = readDelta->ReadDeltaIntCounter( oldValue );
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -131,7 +131,7 @@ public:
|
|||
float ReadDeltaFloat( float oldValue, int exponentBits, int mantissaBits ) const;
|
||||
int ReadDeltaByteCounter( int oldValue ) const;
|
||||
int ReadDeltaShortCounter( int oldValue ) const;
|
||||
int ReadDeltaLongCounter( int oldValue ) const;
|
||||
int ReadDeltaIntCounter( int oldValue ) const;
|
||||
bool ReadDeltaDict( idDict &dict, const idDict *base ) const;
|
||||
|
||||
static int DirToBits( const idVec3 &dir, int numBits );
|
||||
|
@ -497,7 +497,7 @@ public:
|
|||
float ReadDeltaFloat( float oldValue, int exponentBits, int mantissaBits ) const;
|
||||
int ReadDeltaByteCounter( int oldValue ) const;
|
||||
int ReadDeltaShortCounter( int oldValue ) const;
|
||||
int ReadDeltaLongCounter( int oldValue ) const;
|
||||
int ReadDeltaIntCounter( int oldValue ) const;
|
||||
|
||||
private:
|
||||
const idBitMsg *base; // base
|
||||
|
|
Loading…
Reference in a new issue