Revert "Avoid skidding in wrong direction."

This reverts commit 24926bcb1d.
This commit is contained in:
Deve 2018-12-15 23:57:49 +01:00
parent 19c853949c
commit 1a12f65c87

View File

@ -222,21 +222,15 @@ bool PlayerController::action(PlayerAction action, int value, bool dry_run)
break; break;
case PA_DRIFT: case PA_DRIFT:
if (value == 0) if (value == 0)
{
SET_OR_TEST_GETTER(SkidControl, KartControl::SC_NONE); SET_OR_TEST_GETTER(SkidControl, KartControl::SC_NONE);
} else
else if (m_controls->getSkidControl() == KartControl::SC_NONE)
{ {
if (m_steer_val == 0) if (m_steer_val == 0)
{
SET_OR_TEST_GETTER(SkidControl, KartControl::SC_NO_DIRECTION); SET_OR_TEST_GETTER(SkidControl, KartControl::SC_NO_DIRECTION);
}
else else
{
SET_OR_TEST_GETTER(SkidControl, m_steer_val<0 SET_OR_TEST_GETTER(SkidControl, m_steer_val<0
? KartControl::SC_RIGHT ? KartControl::SC_RIGHT
: KartControl::SC_LEFT ); : KartControl::SC_LEFT );
}
} }
break; break;
case PA_PAUSE_RACE: case PA_PAUSE_RACE: