[Scummvm-git-logs] scummvm master -> efa05c7c3e1921fe319a12e3a250fca3aceccc99
neuromancer
noreply at scummvm.org
Wed Nov 19 07:06:11 UTC 2025
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:
efa05c7c3e PRIVATE: Fix PhoneClip variable decrementing
Commit: efa05c7c3e1921fe319a12e3a250fca3aceccc99
https://github.com/scummvm/scummvm/commit/efa05c7c3e1921fe319a12e3a250fca3aceccc99
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2025-11-19T08:06:08+01:00
Commit Message:
PRIVATE: Fix PhoneClip variable decrementing
Fixes gangster events not occurring after answering their first
threatening phone call.
Changed paths:
engines/private/private.cpp
diff --git a/engines/private/private.cpp b/engines/private/private.cpp
index e5492e3d0e8..2374bd6fe7d 100644
--- a/engines/private/private.cpp
+++ b/engines/private/private.cpp
@@ -1129,7 +1129,12 @@ void PrivateEngine::selectPhoneArea(Common::Point mousePos) {
if (inMask(_phoneArea.surf, mousePos)) {
const PhoneInfo &i = _phone.front();
- setSymbol(i.flag, i.val);
+ // -100 indicates that the variable should be decremented
+ if (i.val == -100) {
+ setSymbol(i.flag, i.flag->u.val - 1);
+ } else {
+ setSymbol(i.flag, i.val);
+ }
Common::String sound = _phonePrefix + i.sound + ".wav";
playSound(sound, 1, true, false);
_phone.pop_front();
More information about the Scummvm-git-logs
mailing list