aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/statics.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-08-11 01:19:23 +0300
committerEugene Sandulenko2013-09-06 14:51:12 +0300
commit60ca9f74ac8dfbfcee4bdae3ffbce039fce42854 (patch)
tree9eb852ebd1cbff46d4615990ba832a36aa8ea588 /engines/fullpipe/statics.cpp
parent1ca1a5dfa041179d980676c6aa8fa135f7b69a0e (diff)
downloadscummvm-rg350-60ca9f74ac8dfbfcee4bdae3ffbce039fce42854.tar.gz
scummvm-rg350-60ca9f74ac8dfbfcee4bdae3ffbce039fce42854.tar.bz2
scummvm-rg350-60ca9f74ac8dfbfcee4bdae3ffbce039fce42854.zip
FULLPIPE: Fix bug with lost picture palettes
Diffstat (limited to 'engines/fullpipe/statics.cpp')
-rw-r--r--engines/fullpipe/statics.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index 4854bb1d0d..3a82f7dbe6 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -574,7 +574,7 @@ bool StaticANIObject::setPicAniInfo(PicAniInfo *picAniInfo) {
return false;
}
- debug(0, "StaticANIObject::setPicAniInfo() (%s [%d])", transCyrillic((byte *)_objectName), _id);
+ debug(0, "StaticANIObject::setPicAniInfo() (%s [%d]) type: %d, statid: %d, movid: %d", transCyrillic((byte *)_objectName), _id, picAniInfo->type, picAniInfo->staticsId, picAniInfo->movementId);
if (picAniInfo->type & 3) {
setOXY(picAniInfo->ox, picAniInfo->oy);
@@ -585,7 +585,7 @@ bool StaticANIObject::setPicAniInfo(PicAniInfo *picAniInfo) {
}
if (picAniInfo->type & 1) {
- _messageQueueId = picAniInfo->type >> 16;
+ _messageQueueId = (picAniInfo->type >> 16) & 0xffff;
if (picAniInfo->staticsId) {
_statics = getStaticsById(picAniInfo->staticsId);
@@ -928,7 +928,7 @@ void Movement::removeFirstPhase() {
}
bool Movement::gotoNextFrame(int callback1, int callback2) {
- debug(0, "Movement::gotoNextFrame(%d, %d)", callback1, callback2);
+ debug(8, "Movement::gotoNextFrame(%d, %d)", callback1, callback2);
if (!callback2) {
if (_currMovement) {
@@ -1151,7 +1151,7 @@ DynamicPhase::DynamicPhase(DynamicPhase *src, bool reverse) {
_field_6A = src->_field_6A;
_dynFlags = src->_dynFlags;
- setPaletteData(getPaletteData());
+ setPaletteData(src->getPaletteData());
copyMemoryObject2(src);
}