diff options
-rw-r--r-- | engines/lure/game.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/engines/lure/game.cpp b/engines/lure/game.cpp index 33d1c79866..0f83089b19 100644 --- a/engines/lure/game.cpp +++ b/engines/lure/game.cpp @@ -348,15 +348,22 @@ void Game::handleRightClickMenu() { breakFlag = true; break; + case ASK: + hotspot = res.getHotspot(room.hotspotId()); + strings.getString(hotspot->nameId, statusLine); + strcat(statusLine, " for "); + statusLine += strlen(statusLine); + + itemId = PopupMenu::ShowItems(GET); + breakFlag = ((itemId != 0xffff) && (itemId != 0xfffe)); + if (breakFlag) + hotspot = res.getHotspot(itemId); + break; + case GIVE: case USE: case EXAMINE: case DRINK: - if (action == ASK) { - strings.getString(hotspot->nameId, statusLine); - strcat(statusLine, " for "); - } - hasItems = (res.numInventoryItems() != 0); if (!hasItems) strcat(statusLine, "(nothing)"); |