Remove redundant casts to float when retrieving model frames

This commit is contained in:
Roman Chistokhodov 2020-05-10 21:57:11 +03:00 committed by Andrey Akhmichin
parent 54181adc8e
commit c2064d88ed
2 changed files with 2 additions and 2 deletions

View File

@ -1106,7 +1106,7 @@ void CBMortar::Spawn( void )
UTIL_SetSize( pev, Vector( 0, 0, 0 ), Vector( 0, 0, 0 ) );
m_maxFrame = (float) MODEL_FRAMES( pev->modelindex ) - 1;
m_maxFrame = MODEL_FRAMES( pev->modelindex ) - 1;
pev->dmgtime = gpGlobals->time + 0.4f;
}

View File

@ -95,7 +95,7 @@ void CSquidSpit::Spawn( void )
UTIL_SetSize( pev, Vector( 0, 0, 0 ), Vector( 0, 0, 0 ) );
m_maxFrame = (float)MODEL_FRAMES( pev->modelindex ) - 1;
m_maxFrame = MODEL_FRAMES( pev->modelindex ) - 1;
}
void CSquidSpit::Animate( void )