From 2dd52b4699489607ccefc262aabcda2776177095 Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 1 Dec 2018 01:58:37 +0000 Subject: [PATCH] Fix bogus "Game Over" when dying with the maximum number of lives Reported-by: Buff Skeleton --- similar/main/hud.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/similar/main/hud.cpp b/similar/main/hud.cpp index 687d66d37..0283a89f5 100644 --- a/similar/main/hud.cpp +++ b/similar/main/hud.cpp @@ -238,7 +238,8 @@ void player_dead_message(grs_canvas &canvas) { if (Player_dead_state == player_dead_state::exploded) { - if ( get_local_player().lives < 2 ) { + if (get_local_player().lives == 1) + { int x, y, w, h; auto &huge_font = *HUGE_FONT; gr_get_string_size(huge_font, TXT_GAME_OVER, &w, &h, nullptr);