Add missing case for HE 90+

Always clear complete local script vars.

svn-id: r15564
This commit is contained in:
Travis Howell 2004-10-16 05:10:15 +00:00
parent bb462f64e0
commit d42f98d0c4
6 changed files with 44 additions and 23 deletions

View file

@ -1019,7 +1019,7 @@ void ScummEngine::polygonStore(int id, bool flag, int vert1x, int vert1y, int ve
wp->bound.bottom = -10000;
// compute bounding box
for (int j = 0; j < 5; j++) {
for (int j = 0; j < wp->numVerts; j++) {
Common::Rect r(wp->vert[j].x, wp->vert[j].y, wp->vert[j].x + 1, wp->vert[j].y + 1);
wp->bound.extend(r);
}
@ -1060,7 +1060,7 @@ bool ScummEngine_v70he::polygonDefined(int id) {
}
bool ScummEngine_v70he::polygonContains(const WizPolygon &pol, int x, int y) {
int pi = pol.numVerts - 1;
int pi = pol.numVerts;
bool diry = (y < pol.vert[pi].y);
bool curdir;
bool r = false;