[Scummvm-git-logs] scummvm master -> 56284af0d6267600759938e7f5a6ebc0c4543d33

athrxx athrxx at scummvm.org
Wed Nov 10 23:15:13 UTC 2021


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:
56284af0d6 KYRA: (LoK/Mac) - add death / restart sound


Commit: 56284af0d6267600759938e7f5a6ebc0c4543d33
    https://github.com/scummvm/scummvm/commit/56284af0d6267600759938e7f5a6ebc0c4543d33
Author: athrxx (athrxx at scummvm.org)
Date: 2021-11-11T00:14:38+01:00

Commit Message:
KYRA: (LoK/Mac) - add death / restart sound

This Mac version has a custom hack for this. The normal sound effect that is called here is a dummy.

Changed paths:
    engines/kyra/engine/kyra_lok.cpp


diff --git a/engines/kyra/engine/kyra_lok.cpp b/engines/kyra/engine/kyra_lok.cpp
index f31704b880..c71189f7d8 100644
--- a/engines/kyra/engine/kyra_lok.cpp
+++ b/engines/kyra/engine/kyra_lok.cpp
@@ -444,7 +444,9 @@ void KyraEngine_LoK::mainLoop() {
 
 		if (_deathHandler != -1) {
 			snd_playWanderScoreViaMap(0, 1);
-			snd_playSoundEffect(49);
+ 			snd_playSoundEffect(49);
+			if (_flags.platform == Common::kPlatformMacintosh)
+				_sound->playTrack(15);
 			_screen->setMouseCursor(1, 1, _shapes[0]);
 			removeHandItem();
 			_gui->buttonMenuCallback(0);




More information about the Scummvm-git-logs mailing list