From b2c6708ef480ee0bef981f7335d576d8419d1029 Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 1 Nov 2015 12:31:26 +0000 Subject: [PATCH] Prevent player from pressing return to change to a dead fighter (i.e. - the current one). --- src/battle/player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle/player.c b/src/battle/player.c index a770bbd..bdcd964 100644 --- a/src/battle/player.c +++ b/src/battle/player.c @@ -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;