mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 16:03:24 +00:00
NANCY: Fix reading of Overlay in nancy3
This commit is contained in:
parent
8655830780
commit
53242d84e8
@ -48,10 +48,9 @@ void Overlay::readData(Common::SeekableReadStream &stream) {
|
||||
uint16 numSrcRects;
|
||||
|
||||
readFilename(ser, _imageName);
|
||||
ser.skip(2);
|
||||
ser.skip(2, kGameTypeVampire, kGameTypeNancy2);
|
||||
ser.syncAsUint16LE(_transparency);
|
||||
ser.syncAsUint16LE(_hasSceneChange);
|
||||
|
||||
ser.syncAsUint16LE(_enableHotspot, kGameTypeNancy2);
|
||||
ser.syncAsUint16LE(_z, kGameTypeNancy2);
|
||||
ser.syncAsUint16LE(_overlayType, kGameTypeNancy2);
|
||||
|
@ -65,6 +65,11 @@ void BitmapDescription::readData(Common::SeekableReadStream &stream, bool frameI
|
||||
} else {
|
||||
frameID = stream.readUint32LE();
|
||||
}
|
||||
|
||||
if (g_nancy->getGameType() >= kGameTypeNancy3) {
|
||||
// Most likely transparency
|
||||
stream.skip(2);
|
||||
}
|
||||
|
||||
readRect(stream, src);
|
||||
readRect(stream, dest);
|
||||
|
Loading…
x
Reference in New Issue
Block a user