Maelstrom: Rejuvenate the player if they're on their last life and die as the wave ends

From a34e95ee051edb41b4522dadadeb3a08e5464e3c Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 28 Apr 2026 02:47:46 -0700
Subject: [PATCH] Rejuvenate the player if they're on their last life and die
 as the wave ends

---
 game/player.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/game/player.cpp b/game/player.cpp
index 6eb78da4..ce6d42b5 100644
--- a/game/player.cpp
+++ b/game/player.cpp
@@ -177,7 +177,7 @@ Player::NewWave(void)
 int 
 Player::NewShip(bool died)
 {
-	if ( Lives == 0 ) {
+	if (died && Lives == 0) {
 		if (gGameInfo.IsMultiplayer() && !gGameInfo.IsDeathmatch()) {
 			// We can live on!
 			Ghost = 1;