Revert "Avoid skidding in wrong direction."
This reverts commit 24926bcb1d
.
This commit is contained in:
parent
19c853949c
commit
1a12f65c87
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user