diff options
author | Eugene Sandulenko | 2004-09-14 01:12:16 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2004-09-14 01:12:16 +0000 |
commit | 1439822d1bad04e396f7c11f7158638c7d7afdf2 (patch) | |
tree | 3c052903fd307ebf1a833d80e71e7d4904854416 /scumm | |
parent | 0eb748b7a22c8b7c62301e4778c975b470f2c886 (diff) | |
download | scummvm-rg350-1439822d1bad04e396f7c11f7158638c7d7afdf2.tar.gz scummvm-rg350-1439822d1bad04e396f7c11f7158638c7d7afdf2.tar.bz2 scummvm-rg350-1439822d1bad04e396f7c11f7158638c7d7afdf2.zip |
Fixed yet another bug in polyugonContains. Still not everything :(
svn-id: r15105
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/script_v7he.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp index 5dfcf87136..ad66d1c53c 100644 --- a/scumm/script_v7he.cpp +++ b/scumm/script_v7he.cpp @@ -1124,8 +1124,8 @@ bool ScummEngine_v7he::polygonContains(WizPolygon &pol, int x, int y) { if (curdir != diry) { if (((pol.vert[pi].y - pol.vert[i].y) * (pol.vert[i].x - x) <= - (pol.vert[pi].x - pol.vert[i].x) * (pol.vert[pi].y - y)) == diry) - r = r ? false : true; + (pol.vert[pi].x - pol.vert[i].x) * (pol.vert[i].y - y)) == diry) + r = !r; } pi = i; |