Prevent player from pressing return to change to a dead fighter (i.e. - the current one).

This commit is contained in:
Steve 2015-11-01 12:31:26 +00:00
parent a42a87efa5
commit b2c6708ef4
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ void doPlayerSelect(void)
app.keyboard[SDL_SCANCODE_RIGHT] = 0;
}
if (app.keyboard[SDL_SCANCODE_RETURN])
if (app.keyboard[SDL_SCANCODE_RETURN] && player->health > 0)
{
battle.playerSelect = 0;