aboutsummaryrefslogtreecommitdiff
path: root/engines/touche
diff options
context:
space:
mode:
authorGregory Montoir2006-11-24 00:00:27 +0000
committerGregory Montoir2006-11-24 00:00:27 +0000
commita77ae86c43cac920fdec2a43b254420b924d44f8 (patch)
tree0ec6b0cf16df60220b890de777e5fec41cfe4a15 /engines/touche
parentc7c6eb7fb9433cc5ccd49d5c256beb1946403f6a (diff)
downloadscummvm-rg350-a77ae86c43cac920fdec2a43b254420b924d44f8.tar.gz
scummvm-rg350-a77ae86c43cac920fdec2a43b254420b924d44f8.tar.bz2
scummvm-rg350-a77ae86c43cac920fdec2a43b254420b924d44f8.zip
fixed bug #1602037 - TOUCHE: Map not shown correctly in Intro.
svn-id: r24779
Diffstat (limited to 'engines/touche')
-rw-r--r--engines/touche/resource.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/touche/resource.cpp b/engines/touche/resource.cpp
index 3a0f4dad3f..8223d504c5 100644
--- a/engines/touche/resource.cpp
+++ b/engines/touche/resource.cpp
@@ -414,9 +414,6 @@ void ToucheEngine::res_decodeProgramData() {
void ToucheEngine::res_loadRoom(int num) {
debugC(9, kDebugResource, "ToucheEngine::res_loadRoom() num=%d flag115=%d", num, _flagsTable[115]);
- _currentRoomNum = num;
- _updatedRoomAreasTable[0] = 1;
-
debug(0, "Setting up room %d", num);
const uint32 offsInfo = res_getDataOffset(kResourceTypeRoomInfo, num);
@@ -438,7 +435,8 @@ void ToucheEngine::res_loadRoom(int num) {
// Workaround to what appears to be a scripting bug. Scripts 27 and 100 triggers
// a palette fading just after loading a room. Catch this, so that only *one*
// palette refresh occurs.
- if ((_currentEpisodeNum == 27 && num == 34) || (_currentEpisodeNum == 100 && num == 1)) {
+ if ((_currentEpisodeNum == 27 && _currentRoomNum == 56 && num == 34) ||
+ (_currentEpisodeNum == 100 && _currentRoomNum == 2 && num == 1)) {
updateScreenPalette = false;
}
@@ -448,6 +446,9 @@ void ToucheEngine::res_loadRoom(int num) {
setPalette(0, 255, 0, 0, 0);
}
+ _currentRoomNum = num;
+ _updatedRoomAreasTable[0] = 1;
+
_fullRedrawCounter = 1;
_roomNeedRedraw = true;