Fix bogus "Game Over" when dying with the maximum number of lives

Reported-by: Buff Skeleton <https://forum.dxx-rebirth.com/showthread.php?tid=1096>
This commit is contained in:
Kp 2018-12-01 01:58:37 +00:00
parent 9f460e89a5
commit 2dd52b4699

View file

@ -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);