aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorWalter van Niftrik2017-01-29 23:39:58 +0100
committerWalter van Niftrik2017-01-30 00:05:10 +0100
commit113887cdf727b07a4767a023b3c47450f3c5415a (patch)
treeaf8edda910ad8667e0ee87f84d7b715922636e48 /engines
parent16932810791297ec990f951526a829d2bc33e132 (diff)
downloadscummvm-rg350-113887cdf727b07a4767a023b3c47450f3c5415a.tar.gz
scummvm-rg350-113887cdf727b07a4767a023b3c47450f3c5415a.tar.bz2
scummvm-rg350-113887cdf727b07a4767a023b3c47450f3c5415a.zip
ADL: Fix hires5 room state restoring
Diffstat (limited to 'engines')
-rw-r--r--engines/adl/adl_v4.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/adl/adl_v4.cpp b/engines/adl/adl_v4.cpp
index dcf0f997c9..845c343575 100644
--- a/engines/adl/adl_v4.cpp
+++ b/engines/adl/adl_v4.cpp
@@ -378,8 +378,10 @@ void AdlEngine_v4::backupRoomState(byte room) {
void AdlEngine_v4::restoreRoomState(byte room) {
const RoomState &backup = getCurRegion().rooms[room - 1];
- getRoom(room).isFirstTime = backup.isFirstTime;
- getRoom(room).picture = backup.picture;
+ if (backup.isFirstTime != 1) {
+ getRoom(room).curPicture = getRoom(room).picture = backup.picture;
+ getRoom(room).isFirstTime = false;
+ }
}
void AdlEngine_v4::backupVars() {