mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 20:16:10 +08:00
Modified SDK for GCC 4.2
This commit is contained in:
@ -51,7 +51,7 @@ void SendProxy_ShortAddOne( const SendProp *pProp, const void *pStruct, const vo
|
||||
}
|
||||
|
||||
SendProp SendPropBool(
|
||||
char *pVarName,
|
||||
const char *pVarName,
|
||||
int offset,
|
||||
int sizeofVar )
|
||||
{
|
||||
@ -61,7 +61,7 @@ SendProp SendPropBool(
|
||||
|
||||
|
||||
SendProp SendPropEHandle(
|
||||
char *pVarName,
|
||||
const char *pVarName,
|
||||
int offset,
|
||||
int flags,
|
||||
int sizeofVar,
|
||||
@ -70,7 +70,7 @@ SendProp SendPropEHandle(
|
||||
return SendPropInt( pVarName, offset, sizeofVar, NUM_NETWORKED_EHANDLE_BITS, SPROP_UNSIGNED|flags, proxyFn );
|
||||
}
|
||||
|
||||
SendProp SendPropIntWithMinusOneFlag( char *pVarName, int offset, int sizeofVar, int nBits, SendVarProxyFn proxyFn )
|
||||
SendProp SendPropIntWithMinusOneFlag( const char *pVarName, int offset, int sizeofVar, int nBits, SendVarProxyFn proxyFn )
|
||||
{
|
||||
return SendPropInt( pVarName, offset, sizeofVar, nBits, SPROP_UNSIGNED, proxyFn );
|
||||
}
|
||||
@ -106,7 +106,7 @@ REGISTER_SEND_PROXY_NON_MODIFIED_POINTER( SendProxy_OnlyToTeam );
|
||||
#define TIME_BITS 24
|
||||
|
||||
// This table encodes edict data.
|
||||
static void SendProxy_Time( const SendProp *pProp, const void *pStruct, const void *pVarData, DVariant *pOut, int iElement, int objectID )
|
||||
/*static void SendProxy_Time( const SendProp *pProp, const void *pStruct, const void *pVarData, DVariant *pOut, int iElement, int objectID )
|
||||
{
|
||||
float clock_base = floor( gpGlobals->curtime );
|
||||
float t = *( float * )pVarData;
|
||||
@ -118,7 +118,7 @@ static void SendProxy_Time( const SendProp *pProp, const void *pStruct, const vo
|
||||
addt = clamp( addt, -maxoffset, maxoffset );
|
||||
|
||||
pOut->m_Int = addt;
|
||||
}
|
||||
}*/
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
@ -129,7 +129,7 @@ static void SendProxy_Time( const SendProp *pProp, const void *pStruct, const vo
|
||||
// Output : SendProp
|
||||
//-----------------------------------------------------------------------------
|
||||
SendProp SendPropTime(
|
||||
char *pVarName,
|
||||
const char *pVarName,
|
||||
int offset,
|
||||
int sizeofVar )
|
||||
{
|
||||
@ -172,7 +172,7 @@ static void SendProxy_PredictableIdToInt( const SendProp *pProp, const void *pSt
|
||||
// Output : SendProp
|
||||
//-----------------------------------------------------------------------------
|
||||
SendProp SendPropPredictableId(
|
||||
char *pVarName,
|
||||
const char *pVarName,
|
||||
int offset,
|
||||
int sizeofVar )
|
||||
{
|
||||
@ -188,7 +188,7 @@ void SendProxy_StringT_To_String( const SendProp *pProp, const void *pStruct, co
|
||||
}
|
||||
|
||||
|
||||
SendProp SendPropStringT( char *pVarName, int offset, int sizeofVar )
|
||||
SendProp SendPropStringT( const char *pVarName, int offset, int sizeofVar )
|
||||
{
|
||||
// Make sure it's the right type.
|
||||
Assert( sizeofVar == sizeof( string_t ) );
|
||||
|
Reference in New Issue
Block a user