[Scummvm-git-logs] scummvm master -> 76ba850ce98b2f0bce2491d72fd7e26095497b18
Strangerke
noreply at scummvm.org
Wed Apr 22 21:37:26 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
76ba850ce9 VOYEUR: Fix random phone calls not playing
Commit: 76ba850ce98b2f0bce2491d72fd7e26095497b18
https://github.com/scummvm/scummvm/commit/76ba850ce98b2f0bce2491d72fd7e26095497b18
Author: antoniou79 (a.antoniou79 at gmail.com)
Date: 2026-04-22T23:37:22+02:00
Commit Message:
VOYEUR: Fix random phone calls not playing
Fixes bug #16696
Previously, since _checkPhoneVal was init to 0 and only updated after a random call plays, the second "if" condition in checkPhoneCalls() was never satisfied.
This fix was confirmed from the disassembly, and tested with the Steam version of the game.
Changed paths:
engines/voyeur/voyeur_game.cpp
diff --git a/engines/voyeur/voyeur_game.cpp b/engines/voyeur/voyeur_game.cpp
index d4b34074a63..b9d410ce14f 100644
--- a/engines/voyeur/voyeur_game.cpp
+++ b/engines/voyeur/voyeur_game.cpp
@@ -1328,7 +1328,7 @@ void VoyeurEngine::flashTimeBar() {
void VoyeurEngine::checkPhoneCall() {
if ((_voy->_RTVLimit - _voy->_RTVNum) >= 36 && _voy->_totalPhoneCalls < 5 &&
_currentVocId <= 151 && _currentVocId > 146) {
- if ((_voy->_switchBGNum < _checkPhoneVal || _checkPhoneVal > 180) &&
+ if ((_voy->_switchBGNum < _checkPhoneVal || (_voy->_switchBGNum - _checkPhoneVal) > 180) &&
!_soundManager->getVOCStatus()) {
int soundIndex;
do {
More information about the Scummvm-git-logs
mailing list