aboutsummaryrefslogtreecommitdiff
path: root/scumm/verbs.cpp
diff options
context:
space:
mode:
authorMax Horn2005-04-30 15:04:16 +0000
committerMax Horn2005-04-30 15:04:16 +0000
commit13a13ae10a31603488684bcf935f3ddb3cef47dd (patch)
tree8da25d7944b88b408d74f91761b99debfad1a0c6 /scumm/verbs.cpp
parentac989534a78aba7d75839493c109ada5ce0ab383 (diff)
downloadscummvm-rg350-13a13ae10a31603488684bcf935f3ddb3cef47dd.tar.gz
scummvm-rg350-13a13ae10a31603488684bcf935f3ddb3cef47dd.tar.bz2
scummvm-rg350-13a13ae10a31603488684bcf935f3ddb3cef47dd.zip
cleanup
svn-id: r17873
Diffstat (limited to 'scumm/verbs.cpp')
-rw-r--r--scumm/verbs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/verbs.cpp b/scumm/verbs.cpp
index 98482cb6d2..014a773c15 100644
--- a/scumm/verbs.cpp
+++ b/scumm/verbs.cpp
@@ -415,10 +415,10 @@ void ScummEngine::checkExecVerbs() {
byte code = _mouseAndKeyboardStat & MBS_LEFT_CLICK ? 1 : 2;
int inventoryArea = (_platform == Common::kPlatformNES) ? 48: 32;
- if (_version <= 2 && zone->number == 2 && _mouse.y <= zone->topline + 8) {
+ if (_version <= 2 && zone->number == kVerbVirtScreen && _mouse.y <= zone->topline + 8) {
// Click into V2 sentence line
runInputScript(5, 0, 0);
- } else if (_version <= 2 && zone->number == 2 && _mouse.y > zone->topline + inventoryArea) {
+ } else if (_version <= 2 && zone->number == kVerbVirtScreen && _mouse.y > zone->topline + inventoryArea) {
// Click into V2 inventory
((ScummEngine_v2 *)this)->checkV2Inventory(_mouse.x, _mouse.y);
} else {
@@ -428,7 +428,7 @@ void ScummEngine::checkExecVerbs() {
runInputScript(1, _verbs[over].verbid, code);
} else {
// Scene was clicked
- runInputScript((zone->number == 0) ? 2 : 1, 0, code);
+ runInputScript((zone->number == kMainVirtScreen) ? 2 : 1, 0, code);
}
}
}