Bug fix for ECM usage.
This commit is contained in:
parent
886084f60f
commit
d231be1bd2
|
@ -141,14 +141,14 @@ static void handleKeyboard(void)
|
||||||
app.keyboard[SDL_SCANCODE_A] = 0;
|
app.keyboard[SDL_SCANCODE_A] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (app.keyboard[SDL_SCANCODE_D])
|
if (app.keyboard[SDL_SCANCODE_D] && battle.ecmTimer == ECM_RECHARGE_TIME)
|
||||||
{
|
{
|
||||||
activateECM();
|
activateECM();
|
||||||
|
|
||||||
app.keyboard[SDL_SCANCODE_D] = 0;
|
app.keyboard[SDL_SCANCODE_D] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (app.keyboard[SDL_SCANCODE_S] && battle.ecmTimer == ECM_RECHARGE_TIME)
|
if (app.keyboard[SDL_SCANCODE_S])
|
||||||
{
|
{
|
||||||
applyFighterBrakes();
|
applyFighterBrakes();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue