mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2025-03-23 02:41:39 +00:00
s/WriteDeltaLongCounter/WriteDeltaIntCounter/
to match the argument type.
This commit is contained in:
parent
431415c51c
commit
c971755d98
2 changed files with 8 additions and 8 deletions
|
@ -281,10 +281,10 @@ void idBitMsg::WriteDeltaShortCounter( int oldValue, int newValue ) {
|
|||
|
||||
/*
|
||||
================
|
||||
idBitMsg::WriteDeltaLongCounter
|
||||
idBitMsg::WriteDeltaIntCounter
|
||||
================
|
||||
*/
|
||||
void idBitMsg::WriteDeltaLongCounter( int oldValue, int newValue ) {
|
||||
void idBitMsg::WriteDeltaIntCounter( int oldValue, int newValue ) {
|
||||
int i, x;
|
||||
|
||||
x = oldValue ^ newValue;
|
||||
|
@ -887,16 +887,16 @@ void idBitMsgDelta::WriteDeltaShortCounter( int oldValue, int newValue ) {
|
|||
|
||||
/*
|
||||
================
|
||||
idBitMsgDelta::WriteDeltaLongCounter
|
||||
idBitMsgDelta::WriteDeltaIntCounter
|
||||
================
|
||||
*/
|
||||
void idBitMsgDelta::WriteDeltaLongCounter( int oldValue, int newValue ) {
|
||||
void idBitMsgDelta::WriteDeltaIntCounter( int oldValue, int newValue ) {
|
||||
if ( newBase ) {
|
||||
newBase->WriteBits( newValue, 32 );
|
||||
}
|
||||
|
||||
if ( !base ) {
|
||||
writeDelta->WriteDeltaLongCounter( oldValue, newValue );
|
||||
writeDelta->WriteDeltaIntCounter( oldValue, newValue );
|
||||
changed = true;
|
||||
} else {
|
||||
int baseValue = base->ReadBits( 32 );
|
||||
|
@ -904,7 +904,7 @@ void idBitMsgDelta::WriteDeltaLongCounter( int oldValue, int newValue ) {
|
|||
writeDelta->WriteBits( 0, 1 );
|
||||
} else {
|
||||
writeDelta->WriteBits( 1, 1 );
|
||||
writeDelta->WriteDeltaLongCounter( oldValue, newValue );
|
||||
writeDelta->WriteDeltaIntCounter( oldValue, newValue );
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -102,7 +102,7 @@ public:
|
|||
void WriteDeltaFloat( float oldValue, float newValue, int exponentBits, int mantissaBits );
|
||||
void WriteDeltaByteCounter( int oldValue, int newValue );
|
||||
void WriteDeltaShortCounter( int oldValue, int newValue );
|
||||
void WriteDeltaLongCounter( int oldValue, int newValue );
|
||||
void WriteDeltaIntCounter( int oldValue, int newValue );
|
||||
bool WriteDeltaDict( const idDict &dict, const idDict *base );
|
||||
|
||||
void BeginReading( void ) const; // begin reading.
|
||||
|
@ -472,7 +472,7 @@ public:
|
|||
void WriteDeltaFloat( float oldValue, float newValue, int exponentBits, int mantissaBits );
|
||||
void WriteDeltaByteCounter( int oldValue, int newValue );
|
||||
void WriteDeltaShortCounter( int oldValue, int newValue );
|
||||
void WriteDeltaLongCounter( int oldValue, int newValue );
|
||||
void WriteDeltaIntCounter( int oldValue, int newValue );
|
||||
|
||||
int ReadBits( int numBits ) const;
|
||||
int ReadChar( void ) const;
|
||||
|
|
Loading…
Reference in a new issue