FIxed penalty time, which was broken by the switch to controllers
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4833 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
5c6df4653a
commit
2308e94386
@ -134,7 +134,7 @@ void PlayerController::action(PlayerAction action, int value)
|
||||
break;
|
||||
case PA_ACCEL:
|
||||
m_prev_accel = value;
|
||||
if(value)
|
||||
if (value && !(m_penalty_time > 0.0f))
|
||||
{
|
||||
m_controls->m_accel = value/32768.0f;
|
||||
m_controls->m_brake = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user