aboutsummaryrefslogtreecommitdiff
path: root/engines/access
diff options
context:
space:
mode:
authorStrangerke2014-08-28 02:01:05 +0200
committerStrangerke2014-08-28 02:01:05 +0200
commit941b443195006a787f25143559bf793e863b9446 (patch)
tree6f7ddc52e8d5d1fb36ab24796d048bf1402419a5 /engines/access
parent1590f29d149df976e27df4a49c21ae4d23ab8663 (diff)
downloadscummvm-rg350-941b443195006a787f25143559bf793e863b9446.tar.gz
scummvm-rg350-941b443195006a787f25143559bf793e863b9446.tar.bz2
scummvm-rg350-941b443195006a787f25143559bf793e863b9446.zip
ACCESS: Fix a crash in the intro
Diffstat (limited to 'engines/access')
-rw-r--r--engines/access/amazon/amazon_game.cpp23
1 files changed, 15 insertions, 8 deletions
diff --git a/engines/access/amazon/amazon_game.cpp b/engines/access/amazon/amazon_game.cpp
index f7f3611440..15869a4499 100644
--- a/engines/access/amazon/amazon_game.cpp
+++ b/engines/access/amazon/amazon_game.cpp
@@ -90,7 +90,7 @@ void AmazonEngine::doIntroduction() {
_events->showCursor();
_screen->setPanel(0);
- // TODO: Worry about implementing full intro sequence later
+ //TODO: Implement the rest of the intro
return;
doTitle();
@@ -123,6 +123,9 @@ void AmazonEngine::doTitle() {
_sound->queueSound(0, 98, 30);
_sound->_soundPriority[0] = 1;
+ _sound->queueSound(1, 98, 8);
+ _sound->_soundPriority[1] = 1;
+
_screen->_loadPalFlag = false;
_files->loadScreen(0, 3);
@@ -146,14 +149,18 @@ void AmazonEngine::doTitle() {
_sound->playSound(1);
const int COUNTDOWN[6] = { 2, 0x80, 1, 0x7d, 0, 0x87 };
- for (_pCount = 0; _pCount < 3; ++_pCount) {
- _buffer2.copyFrom(_buffer1);
- int id = READ_LE_UINT16(COUNTDOWN + _pCount * 4);
- int xp = READ_LE_UINT16(COUNTDOWN + _pCount * 4 + 2);
- _screen->plotImage(_objectsTable[0], id, Common::Point(xp, 71));
+ for (_pCount = 0; _pCount <= 3; ++_pCount) {
+ if (_pCount != 3) {
+ _buffer2.copyFrom(_buffer1);
+ int id = READ_LE_UINT16(COUNTDOWN + _pCount * 2);
+ int xp = READ_LE_UINT16(COUNTDOWN + _pCount * 2 + 1);
+ _screen->plotImage(_objectsTable[0], id, Common::Point(xp, 71));
+ //TODO : more intro
+ } else {
+ //TODO : more intro
+ }
}
- // TODO: More to do
-
+ //TODO : more intro
delete _objectsTable[0];
}