aboutsummaryrefslogtreecommitdiff
path: root/scumm/verbs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/verbs.cpp')
-rw-r--r--scumm/verbs.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/scumm/verbs.cpp b/scumm/verbs.cpp
index 3fb0f2532a..6956ba6837 100644
--- a/scumm/verbs.cpp
+++ b/scumm/verbs.cpp
@@ -233,6 +233,10 @@ void ScummEngine::checkV2Inventory(int x, int y) {
if ((y < inventoryArea) || !(_mouseButStat & MBS_LEFT_CLICK))
return;
+ // Inventory is shifted right
+ if (_features & GF_NES)
+ x -= 16;
+
if (v2_mouseover_boxes[kInventoryUpArrow].rect.contains(x, y)) {
if (_inventoryOffset >= 2) {
_inventoryOffset -= 2;
@@ -255,6 +259,7 @@ void ScummEngine::checkV2Inventory(int x, int y) {
return;
object = findInventory(_scummVars[VAR_EGO], object + 1 + _inventoryOffset);
+
if (object > 0) {
runInputScript(3, object, 0);
}
@@ -436,6 +441,10 @@ int ScummEngine::findVerbAtPos(int x, int y) const {
VerbSlot *vs;
int i = _numVerbs - 1;
+ // Verbs are shifted right
+ if (_features & GF_NES)
+ x -= 16;
+
vs = &_verbs[i];
do {
if (vs->curmode != 1 || !vs->verbid || vs->saveid || y < vs->curRect.top || y >= vs->curRect.bottom)