Maelstrom: Don't reset the shield if we are rejuvenated at the end of a wave

From 9dcc1cebf26b0d24f14233fb2c56dd52573b5be2 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 28 Apr 2026 01:59:56 -0700
Subject: [PATCH] Don't reset the shield if we are rejuvenated at the end of a
 wave

---
 game/player.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/game/player.cpp b/game/player.cpp
index d1ec1efb..6eb78da4 100644
--- a/game/player.cpp
+++ b/game/player.cpp
@@ -192,7 +192,9 @@ Player::NewShip(bool died)
 	Set_Points(PLAYER_PTS);
 	Set_HitPoints(PLAYER_HITS);
 	ShieldOn = 0;
-	ShieldLevel = INITIAL_SHIELD;
+	if (died) {
+		ShieldLevel = INITIAL_SHIELD;
+	}
 	AutoShield = SAFE_TIME;
 	WasShielded = 1;
 	Sphase = 0;