mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-20 04:26:03 +08:00
Modified SDK for GCC 4.2
This commit is contained in:
@ -980,7 +980,7 @@ void CFire::Update( float simTime )
|
||||
if ( m_flDamageTime <= gpGlobals->curtime )
|
||||
{
|
||||
m_flDamageTime = gpGlobals->curtime + fire_dmginterval.GetFloat();
|
||||
outputDamage = (fire_dmgbase.GetFloat() + outputHeat * fire_dmgscale.GetFloat() * m_flDamageScale) * fire_dmginterval.GetFloat();
|
||||
outputDamage = (int)((fire_dmgbase.GetFloat() + outputHeat * fire_dmgscale.GetFloat() * m_flDamageScale) * fire_dmginterval.GetFloat());
|
||||
if ( outputDamage )
|
||||
{
|
||||
damage = true;
|
||||
@ -997,7 +997,7 @@ void CFire::Update( float simTime )
|
||||
}
|
||||
else if ( FClassnameIs( pOther, "env_fire" ) )
|
||||
{
|
||||
if ( fireCount < ARRAYSIZE(pFires) )
|
||||
if ( fireCount < (int)ARRAYSIZE(pFires) )
|
||||
{
|
||||
pFires[fireCount] = (CFire *)pOther;
|
||||
fireCount++;
|
||||
|
Reference in New Issue
Block a user