diff options
author | Gregory Montoir | 2009-06-14 15:07:34 +0000 |
---|---|---|
committer | Gregory Montoir | 2009-06-14 15:07:34 +0000 |
commit | 5a03e5cca1837ecf18b4dde856a0c6d32392e3c3 (patch) | |
tree | cf6574df0a855d3bd8b6faec20d1a17f25cfab9e /engines/tucker/locations.cpp | |
parent | 7c5d739ba7591c9448d1968b39a8a565b7dee3a2 (diff) | |
download | scummvm-rg350-5a03e5cca1837ecf18b4dde856a0c6d32392e3c3.tar.gz scummvm-rg350-5a03e5cca1837ecf18b4dde856a0c6d32392e3c3.tar.bz2 scummvm-rg350-5a03e5cca1837ecf18b4dde856a0c6d32392e3c3.zip |
simplified .raw/.wav data files handling in introduction sequences
svn-id: r41520
Diffstat (limited to 'engines/tucker/locations.cpp')
-rw-r--r-- | engines/tucker/locations.cpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/engines/tucker/locations.cpp b/engines/tucker/locations.cpp index ec60086abf..9faa2024a6 100644 --- a/engines/tucker/locations.cpp +++ b/engines/tucker/locations.cpp @@ -650,21 +650,17 @@ void TuckerEngine::execData3PostUpdate_locationNum8() { if (_execData3Counter > 30) { _updateLocationYPosTable2[0] = 16; _updateLocationXPosTable2[0] = 264; - } } if (_updateLocationYPosTable2[0] > 0) { const int offset = _updateLocationYPosTable2[0] * 640 + _updateLocationXPosTable2[0]; - _locationBackgroundGfxBuf[offset] = 142; - _locationBackgroundGfxBuf[offset + 640 - 1] = 143; - _locationBackgroundGfxBuf[offset + 640] = 143; - _locationBackgroundGfxBuf[offset + 640 + 1] = 144; - _locationBackgroundGfxBuf[offset + 640 * 2 - 1] = 144; - _locationBackgroundGfxBuf[offset + 640 * 2] = 144; - _locationBackgroundGfxBuf[offset + 640 * 2 + 1] = 145; - _locationBackgroundGfxBuf[offset + 640 * 3 - 1] = 147; - _locationBackgroundGfxBuf[offset + 640 * 3] = 143; - _locationBackgroundGfxBuf[offset + 640 * 3 + 1] = 147; + static const int colorsTable[] = { 143, 143, 144, 144, 144, 145, 147, 143, 147 }; + _locationBackgroundGfxBuf[offset] = 142; + for (int j = 1; j <= 3; ++j) { + for (int i = -1; i <= 1; ++i) { + _locationBackgroundGfxBuf[offset + 640 * j + i] = colorsTable[(j - 1) * 3 + i + 1]; + } + } addDirtyRect(_updateLocationXPosTable2[0] - 1, _updateLocationYPosTable2[0], 3, 4); _updateLocationYPosTable2[0] += 2; if (_updateLocationYPosTable2[0] > 120) { |