diff options
author | Strangerke | 2014-12-29 21:01:38 +0100 |
---|---|---|
committer | Strangerke | 2014-12-29 21:01:38 +0100 |
commit | 88cca7c97b5cc648503c0401cd4679da27347792 (patch) | |
tree | c41e0bf5b24b2b68f922ac2a39583b8dcd6b15a6 /engines/access | |
parent | a33a9ae2e85c7999e9234538a3979d61ca431626 (diff) | |
download | scummvm-rg350-88cca7c97b5cc648503c0401cd4679da27347792.tar.gz scummvm-rg350-88cca7c97b5cc648503c0401cd4679da27347792.tar.bz2 scummvm-rg350-88cca7c97b5cc648503c0401cd4679da27347792.zip |
ACCESS: MM - Fix Sprite Frame loading
Diffstat (limited to 'engines/access')
-rw-r--r-- | engines/access/asurface.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/access/asurface.cpp b/engines/access/asurface.cpp index 38af7add00..21bf460516 100644 --- a/engines/access/asurface.cpp +++ b/engines/access/asurface.cpp @@ -54,6 +54,12 @@ SpriteResource::~SpriteResource() { SpriteFrame::SpriteFrame(AccessEngine *vm, Common::SeekableReadStream *stream, int frameSize) { int xSize = stream->readUint16LE(); int ySize = stream->readUint16LE(); + + if (vm->getGameID() == GType_MartianMemorandum) { + int size = stream->readUint16LE(); + if (size != frameSize) + warning("Unexpected file difference: framesize %d - size %d %d - unknown %d", frameSize, xSize, ySize, unknown); + } create(xSize, ySize); // Empty surface |