aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2016-01-17 11:14:48 -0500
committerPaul Gilbert2016-01-17 11:14:48 -0500
commitbd3f64a8cf95278aa9ec70ce29d0c50f48a2e4a9 (patch)
treefe2fb1baea2fd68c4e4081ce63f3f5e9157a1a56
parent362c99797c0f04a215618b8dae46159597a1d835 (diff)
downloadscummvm-rg350-bd3f64a8cf95278aa9ec70ce29d0c50f48a2e4a9.tar.gz
scummvm-rg350-bd3f64a8cf95278aa9ec70ce29d0c50f48a2e4a9.tar.bz2
scummvm-rg350-bd3f64a8cf95278aa9ec70ce29d0c50f48a2e4a9.zip
ACCESS: Handle differences in CD vs Floppy establishment text offsets
-rw-r--r--engines/access/amazon/amazon_game.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/access/amazon/amazon_game.cpp b/engines/access/amazon/amazon_game.cpp
index 8134ead2a4..0a671d23d2 100644
--- a/engines/access/amazon/amazon_game.cpp
+++ b/engines/access/amazon/amazon_game.cpp
@@ -617,7 +617,12 @@ void AmazonEngine::startChapter(int chapter) {
_establishGroup = 1;
loadEstablish(0x40 + _chapter);
- uint16 msgOffset = READ_LE_UINT16(_establish->data() + ((0x40 + _chapter) * 2));
+
+ byte *entryOffset = _establish->data() + ((0x40 + _chapter) * 2);
+ if (isCD())
+ entryOffset += 2;
+
+ uint16 msgOffset = READ_LE_UINT16(entryOffset);
_printEnd = 170;
Common::String msg((const char *)_establish->data() + msgOffset);