[Scummvm-git-logs] scummvm master -> 3e0421d00fc682b972085be1a65d9f2f38899813

neuromancer noreply at scummvm.org
Sat Apr 23 10:50:29 UTC 2022


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:
3e0421d00f HYPNO: reset score and lives during game over in wet


Commit: 3e0421d00fc682b972085be1a65d9f2f38899813
    https://github.com/scummvm/scummvm/commit/3e0421d00fc682b972085be1a65d9f2f38899813
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2022-04-23T12:50:57+02:00

Commit Message:
HYPNO: reset score and lives during game over in wet

Changed paths:
    engines/hypno/wet/hard.cpp


diff --git a/engines/hypno/wet/hard.cpp b/engines/hypno/wet/hard.cpp
index 3bdb94b44f5..8bb6666245c 100644
--- a/engines/hypno/wet/hard.cpp
+++ b/engines/hypno/wet/hard.cpp
@@ -49,9 +49,12 @@ void WetEngine::runCode(Code *code) {
 }
 
 void WetEngine::runCheckLives(Code *code) {
-	if (_lives < 0)
+	if (_lives < 0) {
 		_nextLevel = "<game_over>";
-	else
+		_score = 0;
+		_lives = 2;
+		saveProfile(_name, _lastLevel);
+	} else
 		_nextLevel = _checkpoint;
 }
 




More information about the Scummvm-git-logs mailing list