Actually fix slope generation (also whitespace stuff)

This commit is contained in:
RedEnchilada 2015-04-20 13:25:39 -05:00
parent f4ea285f02
commit 7703eae0e8

View file

@ -200,10 +200,11 @@ static float P_GetExtent(sector_t *sector, line_t *line, v3float_t *o, v2float_t
if(dist > fardist) if(dist > fardist)
fardist = dist; fardist = dist;
// We shouldn't have to do this for v2... -Red // Okay, maybe do it for v2 as well?
/*dist = (float)fabs((FIXED_TO_FLOAT(li->v2->x) - o->x) * d->x + (FIXED_TO_FLOAT(li->v2->y) - o->y) * d->y); P_ClosestPointOnLine(li->v2->x, li->v2->y, line, &tempv);
dist = FIXED_TO_FLOAT(R_PointToDist2(tempv.x, tempv.y, li->v2->x, li->v2->y));
if(dist > fardist) if(dist > fardist)
fardist = dist;*/ fardist = dist;
} }
return fardist; return fardist;