Bug fix for ECM usage.

This commit is contained in:
Steve 2015-11-28 15:30:41 +00:00
parent 886084f60f
commit d231be1bd2
1 changed files with 2 additions and 2 deletions

View File

@ -141,14 +141,14 @@ static void handleKeyboard(void)
app.keyboard[SDL_SCANCODE_A] = 0;
}
if (app.keyboard[SDL_SCANCODE_D])
if (app.keyboard[SDL_SCANCODE_D] && battle.ecmTimer == ECM_RECHARGE_TIME)
{
activateECM();
app.keyboard[SDL_SCANCODE_D] = 0;
}
if (app.keyboard[SDL_SCANCODE_S] && battle.ecmTimer == ECM_RECHARGE_TIME)
if (app.keyboard[SDL_SCANCODE_S])
{
applyFighterBrakes();
}