COMPOSER: Fixes for getStreamForSprite.

This commit is contained in:
Alyssa Milburn 2011-07-18 15:07:19 +02:00
parent d176fb1a37
commit 1c03c7d07d

View File

@ -1861,14 +1861,14 @@ void ComposerEngine::decompressBitmap(uint16 type, Common::SeekableReadStream *s
}
Common::SeekableReadStream *ComposerEngine::getStreamForSprite(uint16 id) {
if (hasResource(ID_BMAP, id))
return getResource(ID_BMAP, id);
for (Common::List<Pipe *>::iterator k = _pipes.begin(); k != _pipes.end(); k++) {
Pipe *pipe = *k;
if (!pipe->hasResource(ID_BMAP, id))
continue;
return pipe->getResource(ID_BMAP, id, false);
return pipe->getResource(ID_BMAP, id, true);
}
if (hasResource(ID_BMAP, id))
return getResource(ID_BMAP, id);
return NULL;
}