diff options
author | James Brown | 2003-05-21 10:13:06 +0000 |
---|---|---|
committer | James Brown | 2003-05-21 10:13:06 +0000 |
commit | 60ac300bf3982d3f7ae34521e93918215fb7f4a8 (patch) | |
tree | 67294d49a992f1d8a824b8879a87b998445aeee7 /scumm/scummvm.cpp | |
parent | 0c0cb618769afe273f9935ae4404d6a4ca08723d (diff) | |
download | scummvm-rg350-60ac300bf3982d3f7ae34521e93918215fb7f4a8.tar.gz scummvm-rg350-60ac300bf3982d3f7ae34521e93918215fb7f4a8.tar.bz2 scummvm-rg350-60ac300bf3982d3f7ae34521e93918215fb7f4a8.zip |
Work on V2 inventory hack a little more
svn-id: r7776
Diffstat (limited to 'scumm/scummvm.cpp')
-rw-r--r-- | scumm/scummvm.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index c952e1cb4c..1767704595 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -1868,9 +1868,12 @@ int Scumm::getKeyInput() { if (zone->number == 0) // Clicked in scene _scummVars[VAR_CLICK_AREA] = 2; - else if (zone->number == 2) // Clicked in verb/sentence - _scummVars[VAR_CLICK_AREA] = 1; - + else if (zone->number == 2) { // Clicked in verb/sentence + if (_mouse.y > zone->topline + 32) + _scummVars[VAR_CLICK_AREA] = 3; // Inventory + else + _scummVars[VAR_CLICK_AREA] = 1; // Verb + } } else if (_lastKeyHit) // Key Input _scummVars[VAR_CLICK_AREA] = 4; } |