[Scummvm-git-logs] scummvm branch-3-0 -> 6565ec078d95dac1d6c60442fb67dd4cb90d18f2
sluicebox
noreply at scummvm.org
Sat Nov 29 22:59:56 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:
6565ec078d PRIVATE: Set siren flag in wallSafeAlarm()
Commit: 6565ec078d95dac1d6c60442fb67dd4cb90d18f2
https://github.com/scummvm/scummvm/commit/6565ec078d95dac1d6c60442fb67dd4cb90d18f2
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2025-11-29T14:59:43-08:00
Commit Message:
PRIVATE: Set siren flag in wallSafeAlarm()
I missed this line in f84c8aec71f2f215e1512dec28f544e693898bf3
Changed paths:
engines/private/private.cpp
diff --git a/engines/private/private.cpp b/engines/private/private.cpp
index 4a02925e968..f6fe302f4fe 100644
--- a/engines/private/private.cpp
+++ b/engines/private/private.cpp
@@ -585,12 +585,11 @@ void PrivateEngine::stopPoliceBust() {
void PrivateEngine::wallSafeAlarm() {
// This logic was extracted from the executable.
- // It looks like the developers' intended to randomly reduce
- // the number of clicks until the police arrive.
- // But instead of using their low random number, they generated
- // a new random number, so the safe alarm may increase the
- // number of clicks until the police arrive.
+ // It skips the siren and randomly alters the number of clicks
+ // until the police arrive. This may increase or decrease the
+ // number of clicks, but there will always be at least 1 left.
+ _policeSirenPlayed = true;
int r1 = _rnd->getRandomNumber(3);
int r2 = _rnd->getRandomNumber(3);
if (r1 + r2 + 1 <= _numberOfClicks) {
More information about the Scummvm-git-logs
mailing list