ACCESS: Handle differences in CD vs Floppy establishment text offsets

This commit is contained in:
Paul Gilbert 2016-01-17 11:14:48 -05:00
parent 362c99797c
commit bd3f64a8cf

View File

@ -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);