1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-20 12:36:05 +08:00

Modified SDK for GCC 4.2

This commit is contained in:
Scott Ehlert
2008-09-15 02:50:57 -05:00
parent 86f3bc8a60
commit 7ff7f366d5
696 changed files with 23423 additions and 22634 deletions

View File

@ -307,7 +307,7 @@ void CEnvExplosion::InputExplode( inputdata_t &inputdata )
}
//Get the damage override if specified
int iRadius = ( m_iRadiusOverride > 0 ) ? m_iRadiusOverride : ( m_iMagnitude * 2.5f );
int iRadius = ( m_iRadiusOverride > 0 ) ? m_iRadiusOverride : static_cast<int>(m_iMagnitude * 2.5f);
CPASFilter filter( vecExplodeOrigin );
te->Explosion( filter, 0.0,
@ -388,7 +388,7 @@ void ExplosionCreate( const Vector &center, const QAngle &angles,
CEnvExplosion *pExplosion = (CEnvExplosion*)CBaseEntity::Create( "env_explosion", center, angles, pOwner );
Q_snprintf( buf,sizeof(buf), "%3d", magnitude );
char *szKeyName = "iMagnitude";
const char *szKeyName = "iMagnitude";
char *szValue = buf;
pExplosion->KeyValue( szKeyName, szValue );