https://github.com/libsdl-org/Maelstrom/commit/48a6d87e1951651a92ab329bc1aad8d95570ffb8
From 48a6d87e1951651a92ab329bc1aad8d95570ffb8 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 20 Nov 2011 14:41:53 -0500
Subject: [PATCH] Don't save a high score if we're just playing a replay.
---
game/game.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/game/game.cpp b/game/game.cpp
index cc9bb07f..0ccb6d63 100644
--- a/game/game.cpp
+++ b/game/game.cpp
@@ -1060,7 +1060,8 @@ static void DoGameOver(void)
/* -- They got a high score! */
gLastHigh = which;
- if ((which != -1) && !gGameInfo.IsMultiplayer() &&
+ if ((which != -1) &&
+ !gGameInfo.IsMultiplayer() && !gReplay.IsPlaying() &&
(gGameInfo.wave == 1) && (gGameInfo.lives == 3)) {
sound->PlaySound(gBonusShot, 5);