aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2004-09-14 08:28:23 +0000
committerEugene Sandulenko2004-09-14 08:28:23 +0000
commitf605130496fe220c3a453040e4aaffb951d3b3bd (patch)
tree5305c42cfb07de7d3d11ce5417e8009c5b60ba89
parentbd1e96a728047d5446b56ab72e97a33fd20049cb (diff)
downloadscummvm-rg350-f605130496fe220c3a453040e4aaffb951d3b3bd.tar.gz
scummvm-rg350-f605130496fe220c3a453040e4aaffb951d3b3bd.tar.bz2
scummvm-rg350-f605130496fe220c3a453040e4aaffb951d3b3bd.zip
Fixed latest bug in polygonContains. Now hotspots work as expected.
svn-id: r15110
-rw-r--r--scumm/script_v7he.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp
index 403ab2198d..7efeeecd42 100644
--- a/scumm/script_v7he.cpp
+++ b/scumm/script_v7he.cpp
@@ -1157,7 +1157,7 @@ bool ScummEngine_v7he::polygonContains(WizPolygon &pol, int x, int y) {
bool curdir;
bool r = false;
- for (int i = 0; i < pol.numVerts - 1; i++) {
+ for (int i = 0; i < pol.numVerts; i++) {
curdir = (y <= pol.vert[i].y);
if (curdir != diry) {