mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-14 07:47:55 +03:00
Fixed func_rotating angles fix not being in the right place
This commit is contained in:
parent
01f830a72d
commit
6595b96418
@ -960,18 +960,6 @@ void CFuncRotating::UpdateSpeed( float flNewSpeed )
|
||||
RampPitchVol();
|
||||
}
|
||||
|
||||
#ifdef MAPBASE
|
||||
QAngle angNormalizedAngles = GetLocalAngles();
|
||||
if (m_vecMoveAng.x)
|
||||
angNormalizedAngles.x = AngleNormalize( angNormalizedAngles.x );
|
||||
if (m_vecMoveAng.y)
|
||||
angNormalizedAngles.y = AngleNormalize( angNormalizedAngles.y );
|
||||
if (m_vecMoveAng.z)
|
||||
angNormalizedAngles.z = AngleNormalize( angNormalizedAngles.z );
|
||||
|
||||
SetLocalAngles(angNormalizedAngles);
|
||||
#endif
|
||||
|
||||
SetLocalAngularVelocity( m_vecMoveAng * m_flSpeed );
|
||||
}
|
||||
|
||||
@ -1102,6 +1090,18 @@ void CFuncRotating::RotateMove( void )
|
||||
{
|
||||
SetMoveDoneTime( 10 );
|
||||
|
||||
#ifdef MAPBASE
|
||||
QAngle angNormalizedAngles = GetLocalAngles();
|
||||
if (m_vecMoveAng.x)
|
||||
angNormalizedAngles.x = AngleNormalize( angNormalizedAngles.x );
|
||||
if (m_vecMoveAng.y)
|
||||
angNormalizedAngles.y = AngleNormalize( angNormalizedAngles.y );
|
||||
if (m_vecMoveAng.z)
|
||||
angNormalizedAngles.z = AngleNormalize( angNormalizedAngles.z );
|
||||
|
||||
SetLocalAngles(angNormalizedAngles);
|
||||
#endif
|
||||
|
||||
if ( m_bStopAtStartPos )
|
||||
{
|
||||
SetMoveDoneTime( GetNextMoveInterval() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user