Prevent player from pressing return to change to a dead fighter (i.e. - the current one).
This commit is contained in:
parent
a42a87efa5
commit
b2c6708ef4
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue