diff options
author | Eugene Sandulenko | 2004-09-14 08:28:23 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2004-09-14 08:28:23 +0000 |
commit | f605130496fe220c3a453040e4aaffb951d3b3bd (patch) | |
tree | 5305c42cfb07de7d3d11ce5417e8009c5b60ba89 | |
parent | bd1e96a728047d5446b56ab72e97a33fd20049cb (diff) | |
download | scummvm-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.cpp | 2 |
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) { |