Browse Source

Remove redundant casts to float when retrieving model frames

hl_urbicide
Roman Chistokhodov 5 years ago committed by Andrey Akhmichin
parent
commit
c2064d88ed
  1. 2
      dlls/bigmomma.cpp
  2. 2
      dlls/bullsquid.cpp

2
dlls/bigmomma.cpp

@ -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;
} }

2
dlls/bullsquid.cpp

@ -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…
Cancel
Save