NANCY: Fix reading of Overlay in nancy3

This commit is contained in:
Kaloyan Chehlarski 2023-05-11 21:51:43 +03:00
parent 8655830780
commit 53242d84e8
2 changed files with 6 additions and 2 deletions

View File

@ -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);

View File

@ -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);