aboutsummaryrefslogtreecommitdiff
path: root/scumm/object.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-05-14 14:06:37 +0000
committerTravis Howell2005-05-14 14:06:37 +0000
commit93be3e16d8f9e6f8edec316ec749e189b2f33cc8 (patch)
tree002e60c05c198e3588243d5b46b50356615b8d6a /scumm/object.cpp
parent30d4f8634137787033d3a6be96673a96f0863b4f (diff)
downloadscummvm-rg350-93be3e16d8f9e6f8edec316ec749e189b2f33cc8.tar.gz
scummvm-rg350-93be3e16d8f9e6f8edec316ec749e189b2f33cc8.tar.bz2
scummvm-rg350-93be3e16d8f9e6f8edec316ec749e189b2f33cc8.zip
Add configure option to disable HE 70+ games.
svn-id: r18091
Diffstat (limited to 'scumm/object.cpp')
-rw-r--r--scumm/object.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/scumm/object.cpp b/scumm/object.cpp
index dcf53569d0..da4599f51e 100644
--- a/scumm/object.cpp
+++ b/scumm/object.cpp
@@ -340,10 +340,12 @@ int ScummEngine::findObject(int x, int y) {
a = _objs[b].parentstate;
b = _objs[b].parent;
if (b == 0) {
+#ifndef DISABLE_HE
if (_heversion >= 70) {
if (((ScummEngine_v70he *)this)->_wiz.polygonHit(_objs[i].obj_nr, x, y))
return _objs[i].obj_nr;
}
+#endif
if (_objs[i].x_pos <= x && _objs[i].width + _objs[i].x_pos > x &&
_objs[i].y_pos <= y && _objs[i].height + _objs[i].y_pos > y)
return _objs[i].obj_nr;
@@ -865,6 +867,7 @@ void ScummEngine_v6::clearDrawQueues() {
_blastObjectQueuePos = 0;
}
+#ifndef DISABLE_HE
void ScummEngine_v70he::clearDrawQueues() {
ScummEngine_v6::clearDrawQueues();
@@ -877,7 +880,7 @@ void ScummEngine_v80he::clearDrawQueues() {
_wiz.clearWizBuffer();
}
-
+#endif
void ScummEngine::clearOwnerOf(int obj) {
int i, j;