Don't allow boost if you have 0 speed (when playing as a cannon, for example).

This commit is contained in:
Steve 2016-04-16 16:48:30 +01:00
parent 97a067cb34
commit ccd4160f0e
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ static void handleKeyboard(void)
{
if (battle.status == MS_IN_PROGRESS)
{
if (isControl(CONTROL_BOOST))
if (isControl(CONTROL_BOOST) && player->speed > 0)
{
if (battle.boostTimer == BOOST_RECHARGE_TIME)
{