diff options
Diffstat (limited to 'engines/scumm/script_v6.cpp')
-rw-r--r-- | engines/scumm/script_v6.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/engines/scumm/script_v6.cpp b/engines/scumm/script_v6.cpp index ede32623aa..0226343df5 100644 --- a/engines/scumm/script_v6.cpp +++ b/engines/scumm/script_v6.cpp @@ -536,7 +536,18 @@ void ScummEngine_v6::o6_not() { } void ScummEngine_v6::o6_eq() { - push(pop() == pop()); + int a = pop(); + int b = pop(); + + // WORKAROUND: Forces the game version string set via script 1 to be used in both Macintosh and Windows versions, + // when checking for save game compatibility. Allows saved games to be shared between Macintosh and Windows versions. + // The scripts check VAR_PLATFORM (b) against the value (2) of the Macintosh platform (a). + if (_game.id == GID_BASEBALL2001 && (vm.slot[_currentScript].number == 291 || vm.slot[_currentScript].number == 292) && + a == 2 && b == 1) { + push(1); + } else { + push(a == b); + } } void ScummEngine_v6::o6_neq() { |