[Scummvm-cvs-logs] CVS: scummvm/scumm wiz_he.cpp,2.52,2.53
kirben
kirben at users.sourceforge.net
Tue Apr 12 06:45:27 CEST 2005
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2005/scumm
Modified Files:
wiz_he.cpp
Log Message:
Add missing segment
Index: wiz_he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/wiz_he.cpp,v
retrieving revision 2.52
retrieving revision 2.53
diff -u -d -r2.52 -r2.53
--- wiz_he.cpp 12 Apr 2005 13:18:40 -0000 2.52
+++ wiz_he.cpp 12 Apr 2005 13:44:06 -0000 2.53
@@ -172,6 +172,43 @@
diry = curdir;
}
+ // HE80+
+ int a, b;
+ pi = pol.numVerts - 1;
+ if (r == 0) {
+ for (int i = 0; i < pol.numVerts; i++) {
+ if (pol.vert[i].y == y && pol.vert[i].y == pol.vert[pi].y) {
+
+ a = pol.vert[i].x;
+ b = pol.vert[pi].x;
+
+ if (pol.vert[i].x >= pol.vert[pi].x)
+ a = pol.vert[pi].x;
+
+ if (pol.vert[i].x > pol.vert[pi].x)
+ b = pol.vert[i].x;
+
+ if (x >= a && x <= b)
+ return 1;
+
+ } else if (pol.vert[i].x == x && pol.vert[i].x == pol.vert[pi].x) {
+
+ a = pol.vert[i].y;
+ b = pol.vert[i].y;
+
+ if (pol.vert[i].y >= pol.vert[pi].y)
+ a = pol.vert[pi].y;
+
+ if (pol.vert[i].y <= pol.vert[pi].y)
+ b = pol.vert[pi].y;
+
+ if (y >= a && y <= b)
+ return 1;
+ }
+ pi = i;
+ }
+ }
+
return r;
}
More information about the Scummvm-git-logs
mailing list