mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 12:39:56 +00:00
SCI: Fix KQ6 Mac inventory cursors
This commit is contained in:
parent
adfa5e1b86
commit
df1a800d01
@ -434,9 +434,15 @@ void GfxCursor::kernelSetMacCursor(GuiResourceId viewNum, int loopNum, int celNu
|
||||
|
||||
if (_macCursorRemap.empty()) {
|
||||
// QFG1/Freddy/Hoyle4 use a straight viewNum->cursor ID mapping
|
||||
// KQ6 seems to use this mapping for its cursors
|
||||
if (g_sci->getGameId() == GID_KQ6)
|
||||
viewNum = loopNum * 1000 + celNum;
|
||||
// KQ6 uses this mapping for its cursors
|
||||
if (g_sci->getGameId() == GID_KQ6) {
|
||||
if (viewNum == 990) // Inventory Cursors
|
||||
viewNum = loopNum * 16 + celNum + 2000;
|
||||
else if (viewNum == 998) // Regular Cursors
|
||||
viewNum = celNum + 1000;
|
||||
else // Unknown cursor, ignored
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
// If we do have the list, we'll be using a remap based on what the
|
||||
// scripts have given us.
|
||||
|
Loading…
Reference in New Issue
Block a user