Commented out r3909 changes, because of Portrait of Ruin warp stone regression.

I guess, not much sure though, gfx3d_IsLinePoly doesn't need to take Z position. Z will be handled well by each renderer, whether it's polygon or line.
This commit is contained in:
gocha 2011-02-06 05:17:01 +00:00
parent 967d00cf34
commit cb21139402
1 changed files with 5 additions and 4 deletions

View File

@ -2823,7 +2823,9 @@ bool gfx3d_IsLinePoly(POLY *poly)
for(int j = i + 1; j < type; j++) for(int j = i + 1; j < type; j++)
{ {
vert2 = &gfx3d.vertlist->list[poly->vertIndexes[j]]; vert2 = &gfx3d.vertlist->list[poly->vertIndexes[j]];
if (vert1->x == vert2->x && vert1->y == vert2->y && vert1->z == vert2->z) if (vert1->x == vert2->x && vert1->y == vert2->y
//&& vert1->z == vert2->z
)
{ {
duplicatedVert[j] = true; duplicatedVert[j] = true;
} }
@ -2856,9 +2858,8 @@ bool gfx3d_IsLinePoly(POLY *poly)
} }
//the Z is different, and this method isn't even meant to catch that //the Z is different, and this method isn't even meant to catch that
if (vert1->coord[2] != vert2->coord[2]) //if (vert1->coord[2] != vert2->coord[2])
return false; // return false;
} }
if (horizontalLine || verticalLine) if (horizontalLine || verticalLine)
return true; return true;