Don't allow boost if you have 0 speed (when playing as a cannon, for example).
This commit is contained in:
parent
97a067cb34
commit
ccd4160f0e
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue