diff options
author | Strangerke | 2014-12-17 07:58:24 +0100 |
---|---|---|
committer | Strangerke | 2014-12-17 07:58:24 +0100 |
commit | 56d28bc4c8bececc6bba2788e727718c5741d0ec (patch) | |
tree | 05dd83516b1be2f8e09979aaa570696efb6e3d98 /engines/access/amazon/amazon_logic.cpp | |
parent | 3a1203ff734f7923042ed0b5ab96a460e72369ec (diff) | |
download | scummvm-rg350-56d28bc4c8bececc6bba2788e727718c5741d0ec.tar.gz scummvm-rg350-56d28bc4c8bececc6bba2788e727718c5741d0ec.tar.bz2 scummvm-rg350-56d28bc4c8bececc6bba2788e727718c5741d0ec.zip |
ACCESS: Split doCredit in two, putting demo code in a separate function
Diffstat (limited to 'engines/access/amazon/amazon_logic.cpp')
-rw-r--r-- | engines/access/amazon/amazon_logic.cpp | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/engines/access/amazon/amazon_logic.cpp b/engines/access/amazon/amazon_logic.cpp index 5ac7341018..0200f7a61b 100644 --- a/engines/access/amazon/amazon_logic.cpp +++ b/engines/access/amazon/amazon_logic.cpp @@ -236,74 +236,74 @@ void Opening::doCredit() { if (_pCount <= 75) _vm->_buffer2.plotImage(_vm->_objectsTable[0], _vm->isDemo()? 24 : 0, Common::Point(90, 35)); - else if (_pCount <= 210) { - if (_vm->isDemo()) - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 25, Common::Point(82, 35)); - else - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 1, Common::Point(65, 35)); - } else if (_pCount <= 272) { - if (_vm->isDemo()) { - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 23, Common::Point(77, 20)); - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 4, Common::Point(50, 35)); - } else - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 2, Common::Point(96, 45)); + else if (_pCount <= 210) + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 1, Common::Point(65, 35)); + else if (_pCount <= 272) + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 2, Common::Point(96, 45)); + else if (_pCount <= 334) + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 3, Common::Point(68, 54)); + else if (_pCount <= 396) + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 4, Common::Point(103, 54)); + else if (_pCount <= 458) { + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 5, Common::Point(8, 5)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 12, Common::Point(88, 55)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 6, Common::Point(194, 98)); + } else if (_pCount <= 520) { + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 7, Common::Point(32, 13)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 8, Common::Point(162, 80)); + } else if (_pCount <= 580) { + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 9, Common::Point(18, 15)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 10, Common::Point(164, 81)); + } else + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 11, Common::Point(106, 55)); +} + +void Opening::doCreditDemo() { + if (_pCount < 15) + return; + + if (_pCount <= 75) + _vm->_buffer2.plotImage(_vm->_objectsTable[0], _vm->isDemo()? 24 : 0, Common::Point(90, 35)); + else if (_pCount <= 210) + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 25, Common::Point(82, 35)); + else if (_pCount <= 272) { + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 23, Common::Point(77, 20)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 4, Common::Point(50, 35)); } else if (_pCount <= 334) { - if (_vm->isDemo()) { - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 16, Common::Point(200, 70)); - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 4, Common::Point(170, 85)); - } else - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 3, Common::Point(68, 54)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 16, Common::Point(200, 70)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 4, Common::Point(170, 85)); } else if (_pCount <= 396) { - if (_vm->isDemo()) { - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 15, Common::Point(65, 15)); - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 2, Common::Point(30, 30)); - } else - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 4, Common::Point(103, 54)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 15, Common::Point(65, 15)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 2, Common::Point(30, 30)); } else if (_pCount <= 458) { - if (_vm->isDemo()) { - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 19, Common::Point(123, 40)); - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 10, Common::Point(115, 55)); - } else { - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 5, Common::Point(8, 5)); - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 12, Common::Point(88, 55)); - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 6, Common::Point(194, 98)); - } + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 19, Common::Point(123, 40)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 10, Common::Point(115, 55)); } else if (_pCount <= 520) { - if (_vm->isDemo()) { - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 18, Common::Point(50, 15)); - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 9, Common::Point(40, 30)); - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 0, Common::Point(40, 55)); - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 20, Common::Point(198, 95)); - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 3, Common::Point(160, 110)); - } else { - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 7, Common::Point(32, 13)); - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 8, Common::Point(162, 80)); - } + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 18, Common::Point(50, 15)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 9, Common::Point(40, 30)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 0, Common::Point(40, 55)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 20, Common::Point(198, 95)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 3, Common::Point(160, 110)); } else if (_pCount <= 580) { - if (_vm->isDemo()) { - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 21, Common::Point(40, 10)); - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 6, Common::Point(20, 25)); - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 22, Common::Point(145, 50)); - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 7, Common::Point(125, 65)); - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 12, Common::Point(207, 90)); - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 5, Common::Point(200, 105)); - } else { - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 9, Common::Point(18, 15)); - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 10, Common::Point(164, 81)); - } + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 21, Common::Point(40, 10)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 6, Common::Point(20, 25)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 22, Common::Point(145, 50)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 7, Common::Point(125, 65)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 12, Common::Point(207, 90)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 5, Common::Point(200, 105)); } else { - if (_vm->isDemo()) { - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 11, Common::Point(125, 30)); - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 4, Common::Point(115, 45)); - } else - _vm->_buffer2.plotImage(_vm->_objectsTable[0], 11, Common::Point(106, 55)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 11, Common::Point(125, 30)); + _vm->_buffer2.plotImage(_vm->_objectsTable[0], 4, Common::Point(115, 45)); } } void Opening::scrollTitle() { _vm->copyBF1BF2(); _vm->_newRects.clear(); - doCredit(); + if (_vm->isDemo()) + doCreditDemo(); + else + doCredit(); _vm->copyRects(); _vm->copyBF2Vid(); } |