mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-02 18:14:26 +00:00
Remove redundant casts to float when retrieving model frames
This commit is contained in:
parent
54181adc8e
commit
c2064d88ed
@ -1106,7 +1106,7 @@ void CBMortar::Spawn( void )
|
|||||||
|
|
||||||
UTIL_SetSize( pev, Vector( 0, 0, 0 ), Vector( 0, 0, 0 ) );
|
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;
|
pev->dmgtime = gpGlobals->time + 0.4f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ void CSquidSpit::Spawn( void )
|
|||||||
|
|
||||||
UTIL_SetSize( pev, Vector( 0, 0, 0 ), Vector( 0, 0, 0 ) );
|
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 )
|
void CSquidSpit::Animate( void )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user