aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2004-07-18 11:46:50 +0000
committerTravis Howell2004-07-18 11:46:50 +0000
commitc87804b893ffa527a9cbb99129596e4def651cb5 (patch)
tree2616797e7f2d84dd9980b9c1a74457bad6c00044 /scumm
parentb317fbb39dbe7c748805acb2dfae1cd37b64efdd (diff)
downloadscummvm-rg350-c87804b893ffa527a9cbb99129596e4def651cb5.tar.gz
scummvm-rg350-c87804b893ffa527a9cbb99129596e4def651cb5.tar.bz2
scummvm-rg350-c87804b893ffa527a9cbb99129596e4def651cb5.zip
FM Towns versions of indy3 and zak set three extra timers (Verified by disasm.)
svn-id: r14243
Diffstat (limited to 'scumm')
-rw-r--r--scumm/scumm.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp
index 8c1bf8efe0..90475c65c6 100644
--- a/scumm/scumm.cpp
+++ b/scumm/scumm.cpp
@@ -1065,7 +1065,7 @@ void ScummEngine::launch() {
if (_version < 7 && _heversion <= 71)
VAR(VAR_VERSION) = 21;
- if (!((_features & GF_MACINTOSH) && (_version == 3))) {
+ if (!((_features & GF_MACINTOSH) && (_version == 3)) && !(_features & GF_FMTOWNS)) {
// This is NOT for the Mac version of Indy3/Loom
VAR(VAR_DEBUGMODE) = _debugMode;
}
@@ -1432,6 +1432,12 @@ int ScummEngine::scummLoop(int delta) {
VAR(VAR_TMR_1) += delta;
VAR(VAR_TMR_2) += delta;
VAR(VAR_TMR_3) += delta;
+ if ((_gameId == GID_ZAK256 || _gameId == GID_INDY3) && (_features & GF_FMTOWNS)) {
+ // FM Towns version of Indy3 and Zak set three extra timers
+ VAR(39) += delta;
+ VAR(40) += delta;
+ VAR(41) += delta;
+ }
}
if (VAR_TMR_4 != 0xFF)
VAR(VAR_TMR_4) += delta;
@@ -1478,7 +1484,7 @@ int ScummEngine::scummLoop(int delta) {
VAR(VAR_VIRT_MOUSE_Y) = _virtualMouse.y;
VAR(VAR_MOUSE_X) = _mouse.x;
VAR(VAR_MOUSE_Y) = _mouse.y;
- if (!((_features & GF_MACINTOSH) && (_version == 3))) {
+ if (!((_features & GF_MACINTOSH) && (_version == 3)) && !(_features & GF_FMTOWNS)) {
// This is NOT for the Mac version of Indy3/Loom
VAR(VAR_DEBUGMODE) = _debugMode;
}