fix "holding left and pressing right ignores wheel lock"
This commit is contained in:
@@ -495,6 +495,22 @@ void WheelBase::TweenOffScreenUpdateItems(bool changing_sort)
|
||||
}
|
||||
}
|
||||
|
||||
void WheelBase::ChangeMusicUnlessLocked( int n )
|
||||
{
|
||||
if( m_WheelState == STATE_LOCKED )
|
||||
{
|
||||
if(n)
|
||||
{
|
||||
int iSign = n/abs(n);
|
||||
m_fLockedWheelVelocity = iSign*LOCKED_INITIAL_VELOCITY;
|
||||
m_soundLocked.Play();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
ChangeMusic( n );
|
||||
}
|
||||
|
||||
void WheelBase::Move(int n)
|
||||
{
|
||||
if(n == m_Moving)
|
||||
|
||||
Reference in New Issue
Block a user