mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-03-03 17:15:24 +03:00
Fix PLAYER_FLAG_BITS truncating m_fFlags sent to clients
This commit is contained in:
parent
238a15a79d
commit
46b8c3a544
@ -8101,14 +8101,14 @@ void CMovementSpeedMod::InputSpeedMod(inputdata_t &data)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void SendProxy_CropFlagsToPlayerFlagBitsLength( const SendProp *pProp, const void *pStruct, const void *pVarData, DVariant *pOut, int iElement, int objectID)
|
||||
void SendProxy_CropFlagsToPlayerFlagBitsLength( const SendProp* pProp, const void* pStruct, const void* pVarData, DVariant* pOut, int iElement, int objectID )
|
||||
{
|
||||
int mask = (1<<PLAYER_FLAG_BITS) - 1;
|
||||
int data = *(int *)pVarData;
|
||||
int mask = ( 1 << PLAYER_FLAG_BITS ) - 1;
|
||||
int data = *( int* )pVarData;
|
||||
|
||||
pOut->m_Int = ( data & mask );
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------------- //
|
||||
// SendTable for CPlayerState.
|
||||
// -------------------------------------------------------------------------------- //
|
||||
|
@ -163,7 +163,7 @@
|
||||
#define FL_INWATER (1<<10) // In water
|
||||
|
||||
// NOTE if you move things up, make sure to change this value
|
||||
#define PLAYER_FLAG_BITS 11
|
||||
#define PLAYER_FLAG_BITS 32
|
||||
|
||||
#define FL_FLY (1<<11) // Changes the SV_Movestep() behavior to not need to be on ground
|
||||
#define FL_SWIM (1<<12) // Changes the SV_Movestep() behavior to not need to be on ground (but stay in water)
|
||||
|
Loading…
x
Reference in New Issue
Block a user