[Scummvm-git-logs] scummvm master -> 1aa5eda70400b2ec93754374458c7d3ed487bb23
neuromancer
noreply at scummvm.org
Sun Nov 27 19:09:23 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
1aa5eda704 FREESCAPE: fixes for amiga/atari driller releases
Commit: 1aa5eda70400b2ec93754374458c7d3ed487bb23
https://github.com/scummvm/scummvm/commit/1aa5eda70400b2ec93754374458c7d3ed487bb23
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2022-11-27T20:10:22+01:00
Commit Message:
FREESCAPE: fixes for amiga/atari driller releases
Changed paths:
engines/freescape/freescape.cpp
engines/freescape/games/palettes.cpp
diff --git a/engines/freescape/freescape.cpp b/engines/freescape/freescape.cpp
index bbe05e09aed..1d1003cefa9 100644
--- a/engines/freescape/freescape.cpp
+++ b/engines/freescape/freescape.cpp
@@ -296,7 +296,7 @@ void FreescapeEngine::takeDamageFromSensor() {
void FreescapeEngine::drawBackground() {
_gfx->setViewport(_fullscreenViewArea);
- _gfx->clear(_currentArea->_usualBackgroundColor);
+ _gfx->clear(isAmiga() || isAtariST() ? 0 : _currentArea->_usualBackgroundColor);
_gfx->setViewport(_viewArea);
_gfx->clear(_currentArea->_skyColor);
}
diff --git a/engines/freescape/games/palettes.cpp b/engines/freescape/games/palettes.cpp
index 7d336773dd9..c8f78d91407 100644
--- a/engines/freescape/games/palettes.cpp
+++ b/engines/freescape/games/palettes.cpp
@@ -64,7 +64,10 @@ void FreescapeEngine::loadColorPalette() {
void FreescapeEngine::loadPalettes(Common::SeekableReadStream *file, int offset) {
file->seek(offset);
int r, g, b;
- for (uint i = 0; i < _areaMap.size(); i++) {
+ // This loop will load all the available palettes, which are more
+ // the current areas. This indicates that more areas
+ // were originally planned, but they are not in the final game
+ for (uint i = 0; i < _areaMap.size() + 2; i++) {
int label = readField(file, 8);
auto palette = new byte[16][3];
debugC(1, kFreescapeDebugParser, "Loading palette for area: %d", label);
More information about the Scummvm-git-logs
mailing list