diff options
author | Ludvig Strigeus | 2001-11-14 20:09:39 +0000 |
---|---|---|
committer | Ludvig Strigeus | 2001-11-14 20:09:39 +0000 |
commit | 88dcec7cdb16413e877b42c9a3b5d96631b37c31 (patch) | |
tree | 67451c80d768010be21337fe4eee5d9770bf7eef /verbs.cpp | |
parent | 8ae567b094b798625ffc9e4870086d8faf19c542 (diff) | |
download | scummvm-rg350-88dcec7cdb16413e877b42c9a3b5d96631b37c31.tar.gz scummvm-rg350-88dcec7cdb16413e877b42c9a3b5d96631b37c31.tar.bz2 scummvm-rg350-88dcec7cdb16413e877b42c9a3b5d96631b37c31.zip |
readability patch (janssen)
svn-id: r3493
Diffstat (limited to 'verbs.cpp')
-rw-r--r-- | verbs.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -36,7 +36,7 @@ void Scumm::checkExecVerbs() { if (_userPut<=0 || _mouseButStat==0) return; - if (_mouseButStat < 0x200) { + if (_mouseButStat < MBS_MAX_KEY) { /* Check keypresses */ vs = &_verbs[1]; for (i=1; i<_maxVerbs; i++,vs++) { @@ -48,8 +48,8 @@ void Scumm::checkExecVerbs() { } } runInputScript(4, _mouseButStat, 1); - } else if (_mouseButStat&0xC000) { - byte code = _mouseButStat&0x8000 ? 1 : 2; + } else if (_mouseButStat&MBS_MOUSE_MASK) { + byte code = _mouseButStat&MBS_LEFT_CLICK ? 1 : 2; if (mouse.y >= virtscr[0].topline && mouse.y < virtscr[0].topline + virtscr[0].height) { over = checkMouseOver(mouse.x, mouse.y); if (over != 0) { |