mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-29 05:41:02 +00:00
Actually fix slope generation (also whitespace stuff)
This commit is contained in:
parent
f4ea285f02
commit
7703eae0e8
1 changed files with 182 additions and 181 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue