Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -418,11 +418,33 @@ void AGOSEngine::hitarea_stuff_helper_2() { | |
|
||
#ifdef ENABLE_AGOS2 | ||
void AGOSEngine_Feeble::handleMouseWheelUp() { | ||
This comment has been minimized.
Sorry, something went wrong. |
||
// TODO | ||
if (!(getBitFlag(99))) | ||
return; | ||
|
||
if (_mouse.x >= 128 && _mouse.x <= 515 && _mouse.y >= 102 && _mouse.y <= 206) { | ||
oracleTextDown(); | ||
} else if (_mouse.x >= 172 && _mouse.x <= 469 && _mouse.y >= 287 && _mouse.y <= 382) { | ||
HitArea *ha = findBox(0x7FFB); | ||
if (ha != NULL && (ha->flags & kBFBoxInUse)) { | ||
if (!isSpriteLoaded(21, 9)) | ||
inventoryUp(ha->window); | ||
This comment has been minimized.
Sorry, something went wrong.
eriktorbjorn
Member
|
||
} | ||
} | ||
} | ||
|
||
void AGOSEngine_Feeble::handleMouseWheelDown() { | ||
// TODO | ||
if (!(getBitFlag(99))) | ||
return; | ||
|
||
if (_mouse.x >= 128 && _mouse.x <= 515 && _mouse.y >= 102 && _mouse.y <= 206) { | ||
oracleTextUp(); | ||
} else if (_mouse.x >= 172 && _mouse.x <= 469 && _mouse.y >= 287 && _mouse.y <= 382) { | ||
HitArea *ha = findBox(0x7FFC); | ||
if (ha != NULL && (ha->flags & kBFBoxInUse)) { | ||
if (!isSpriteLoaded(23, 9)) | ||
inventoryDown(ha->window); | ||
} | ||
} | ||
} | ||
#endif | ||
|
||
|
1 comment
on commit ec0f420
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, it looks like bitFlag 99 is never set in any of the Puzzle Pack games. But I was add an extra check, just to be safe.
This function will also be called in the "Puzzle Pack" games, since they inherit from the Feeble Files engine. Is the getBitFlag() check enough to ensure that it won't do anything unexpected in those games?