SCI: Fix KQ6 Mac inventory cursors
This commit is contained in:
parent
adfa5e1b86
commit
df1a800d01
1 changed files with 9 additions and 3 deletions
|
@ -434,9 +434,15 @@ void GfxCursor::kernelSetMacCursor(GuiResourceId viewNum, int loopNum, int celNu
|
||||||
|
|
||||||
if (_macCursorRemap.empty()) {
|
if (_macCursorRemap.empty()) {
|
||||||
// QFG1/Freddy/Hoyle4 use a straight viewNum->cursor ID mapping
|
// QFG1/Freddy/Hoyle4 use a straight viewNum->cursor ID mapping
|
||||||
// KQ6 seems to use this mapping for its cursors
|
// KQ6 uses this mapping for its cursors
|
||||||
if (g_sci->getGameId() == GID_KQ6)
|
if (g_sci->getGameId() == GID_KQ6) {
|
||||||
viewNum = loopNum * 1000 + celNum;
|
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 {
|
} else {
|
||||||
// If we do have the list, we'll be using a remap based on what the
|
// If we do have the list, we'll be using a remap based on what the
|
||||||
// scripts have given us.
|
// scripts have given us.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue