aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-24 12:20:01 +0100
committerEugene Sandulenko2019-12-24 14:08:16 +0100
commita326ee192d73420a960c023333dc6676a71e17c4 (patch)
tree67ce41018470de2af6238aded5132439329687f0 /engines
parent1f5b4bdf740e830b421205004f6ab69cabe9a8eb (diff)
downloadscummvm-rg350-a326ee192d73420a960c023333dc6676a71e17c4.tar.gz
scummvm-rg350-a326ee192d73420a960c023333dc6676a71e17c4.tar.bz2
scummvm-rg350-a326ee192d73420a960c023333dc6676a71e17c4.zip
DIRECTOR: Properly set moveable flag for sprites on loading
Diffstat (limited to 'engines')
-rw-r--r--engines/director/frame.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/director/frame.cpp b/engines/director/frame.cpp
index 9364babb1b..ec60338bbf 100644
--- a/engines/director/frame.cpp
+++ b/engines/director/frame.cpp
@@ -219,6 +219,7 @@ void Frame::readChannels(Common::ReadStreamEndian *stream) {
sprite._scriptId = stream->readUint16();
sprite._flags2 = stream->readByte(); // 0x40 editable, 0x80 moveable
sprite._unk2 = stream->readByte();
+ sprite._moveable = ((sprite._flags2 & 0x80) == 0x80);
if (_vm->getVersion() >= 5)
sprite._unk3 = stream->readUint32();