aboutsummaryrefslogtreecommitdiff
path: root/script_v1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'script_v1.cpp')
-rw-r--r--script_v1.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/script_v1.cpp b/script_v1.cpp
index c056de812d..333b35120c 100644
--- a/script_v1.cpp
+++ b/script_v1.cpp
@@ -1345,6 +1345,10 @@ void Scumm::o5_getDist()
o2 = getVarOrDirectWord(0x40);
r = getObjActToObjActDist(o1, o2);
+ /* FIXME: MI2 race workaround, see bug 597022 */
+ if (_gameId == GID_MONKEY2 && vm.slot[_currentScript].number == 40 && r < 60)
+ r = 60;
+
setResult(r);
}