SCI: adding displaceY adjust for sci1.1 views

sierra sci did this in their getCelRect(), we are doing it while loading, fixes laura bow not appearing in taxi (bug #3041220)

svn-id: r51955
This commit is contained in:
Martin Kiewitz 2010-08-10 18:00:27 +00:00
parent a201b2e506
commit 9be20d5f0a

View file

@ -256,6 +256,8 @@ void GfxView::initData(GuiResourceId resourceId) {
cel->scriptHeight = cel->height = READ_SCI11ENDIAN_UINT16(celData + 2);
cel->displaceX = READ_SCI11ENDIAN_UINT16(celData + 4);
cel->displaceY = READ_SCI11ENDIAN_UINT16(celData + 6);
if (cel->displaceY < 0)
cel->displaceY += 255; // sierra did this adjust in their getCelRect()
assert(cel->width && cel->height);