[Scummvm-git-logs] scummvm master -> e15f7c01552887c560e6a5a137e8efc80f2dcad1
AndywinXp
noreply at scummvm.org
Thu Sep 21 20:10:26 UTC 2023
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:
e15f7c0155 SWORD1: PSX: Add check for GEORGE id in fnRandom()
Commit: e15f7c01552887c560e6a5a137e8efc80f2dcad1
https://github.com/scummvm/scummvm/commit/e15f7c01552887c560e6a5a137e8efc80f2dcad1
Author: AndywinXp (andywinxp at gmail.com)
Date: 2023-09-21T22:10:19+02:00
Commit Message:
SWORD1: PSX: Add check for GEORGE id in fnRandom()
Forgot to add it during the previous PSX commit, sorry.
Changed paths:
engines/sword1/logic.cpp
diff --git a/engines/sword1/logic.cpp b/engines/sword1/logic.cpp
index 19ed23c4758..ca359af5646 100644
--- a/engines/sword1/logic.cpp
+++ b/engines/sword1/logic.cpp
@@ -1558,7 +1558,7 @@ int Logic::fnGetToError(Object *cpt, int32 id, int32 a, int32 b, int32 c, int32
}
int Logic::fnRandom(Object *compact, int32 id, int32 min, int32 max, int32 e, int32 f, int32 z, int32 x) {
- if (SwordEngine::isPsx() && _psxFudgeRandom) {
+ if (SwordEngine::isPsx() && id == GEORGE && _psxFudgeRandom) {
// If this PSX flag is active, just set the random value as the range minimum.
// This changes the timing at which George gets into is idle animation.
_psxFudgeRandom = false;
More information about the Scummvm-git-logs
mailing list