[Scummvm-git-logs] scummvm master -> 400163d6584f819b51477d73564c871759a2495b

neuromancer noreply at scummvm.org
Wed Mar 5 21:25:08 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
400163d658 FREESCAPE: Make energy reaching 0 condition apply to Driller only


Commit: 400163d6584f819b51477d73564c871759a2495b
    https://github.com/scummvm/scummvm/commit/400163d6584f819b51477d73564c871759a2495b
Author: akramhany (akramhany65 at gmail.com)
Date: 2025-03-05T22:25:05+01:00

Commit Message:
FREESCAPE: Make energy reaching 0 condition apply to Driller only

Changed paths:
    engines/freescape/freescape.cpp


diff --git a/engines/freescape/freescape.cpp b/engines/freescape/freescape.cpp
index 2a38a4b048f..c4331c48f29 100644
--- a/engines/freescape/freescape.cpp
+++ b/engines/freescape/freescape.cpp
@@ -868,7 +868,7 @@ bool FreescapeEngine::checkIfGameEnded() {
 		if (!_noShieldMessage.empty())
 			insertTemporaryMessage(_noShieldMessage, _countdown - 2);
 		_gameStateControl = kFreescapeGameStateEnd;
-	} else if (_gameStateVars[k8bitVariableEnergy] == 0) {
+	} else if (_gameStateVars[k8bitVariableEnergy] == 0 && isDriller()) {
 		playSound(_soundIndexNoEnergy, true);
 
 		if (!_noEnergyMessage.empty())




More information about the Scummvm-git-logs mailing list