diff options
author | Ludvig Strigeus | 2001-10-09 19:02:28 +0000 |
---|---|---|
committer | Ludvig Strigeus | 2001-10-09 19:02:28 +0000 |
commit | 907f51287c6b5f2f4248dc2ca80e9a286159d790 (patch) | |
tree | 55513139ea82775f5de99652535471ad69959599 /verbs.cpp | |
parent | 3c2f425cc1296452e466da57ac38c17bba24ff8a (diff) | |
download | scummvm-rg350-907f51287c6b5f2f4248dc2ca80e9a286159d790.tar.gz scummvm-rg350-907f51287c6b5f2f4248dc2ca80e9a286159d790.tar.bz2 scummvm-rg350-907f51287c6b5f2f4248dc2ca80e9a286159d790.zip |
command line parameter support
svn-id: r3414
Diffstat (limited to 'verbs.cpp')
-rw-r--r-- | verbs.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -17,8 +17,12 @@ * * Change Log: * $Log$ - * Revision 1.1 2001/10/09 14:30:13 strigeus - * Initial revision + * Revision 1.2 2001/10/09 19:02:28 strigeus + * command line parameter support + * + * Revision 1.1.1.1 2001/10/09 14:30:13 strigeus + * + * initial revision * * */ @@ -54,7 +58,7 @@ void Scumm::checkExecVerbs() { runInputScript(4, _mouseButStat, 1); } else if (_mouseButStat&0xC000) { byte code = _mouseButStat&0x8000 ? 1 : 2; - if (virtscr[0].topline <= mouse.y || virtscr[0].topline + virtscr[0].height > mouse.y) { + if (mouse.y >= virtscr[0].topline && mouse.y < virtscr[0].topline + virtscr[0].height) { over = checkMouseOver(mouse.x, mouse.y); if (over != 0) { runInputScript(1,verbs[over].verbid,code); |