aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2014-03-13 13:05:12 -0400
committerPaul Gilbert2014-03-13 13:05:12 -0400
commitb2d90ddaab19702495a2dcc84be0de7443739f0b (patch)
tree38ddd6acd184d5cf74c421b1b6a98d3846e2364e
parente80373c823215c8d1ac59a6a1a81dc9233b1eb07 (diff)
downloadscummvm-rg350-b2d90ddaab19702495a2dcc84be0de7443739f0b.tar.gz
scummvm-rg350-b2d90ddaab19702495a2dcc84be0de7443739f0b.tar.bz2
scummvm-rg350-b2d90ddaab19702495a2dcc84be0de7443739f0b.zip
MADS: Fix positioning of foreground sprites
-rw-r--r--engines/mads/assets.h1
-rw-r--r--engines/mads/sequence.cpp3
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/assets.h b/engines/mads/assets.h
index b4856605eb..31d46881ff 100644
--- a/engines/mads/assets.h
+++ b/engines/mads/assets.h
@@ -78,7 +78,6 @@ private:
public:
SpriteSetCharInfo *_charInfo;
int _usageIndex;
- Common::Point _pos;
public:
/**
* Constructor
diff --git a/engines/mads/sequence.cpp b/engines/mads/sequence.cpp
index dfb3d6fbcd..c03ff38c71 100644
--- a/engines/mads/sequence.cpp
+++ b/engines/mads/sequence.cpp
@@ -184,7 +184,8 @@ void SequenceList::setSpriteSlot(int seqIndex, SpriteSlot &spriteSlot) {
if (!timerEntry._nonFixed) {
spriteSlot._position = timerEntry._msgPos;
} else {
- spriteSlot._position = spriteSet._pos;
+ MSprite *sprite = spriteSet.getFrame(spriteSlot._frameNumber);
+ spriteSlot._position = sprite->_offset;
}
}