mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-14 05:41:02 +00:00
Update r_segs.c
This commit is contained in:
parent
ffd5061531
commit
5b285a60a2
1 changed files with 2 additions and 2 deletions
|
@ -1651,9 +1651,9 @@ static void R_RenderSegLoop (void)
|
||||||
static INT64 R_CalcSegDist(seg_t* seg, INT64 x2, INT64 y2)
|
static INT64 R_CalcSegDist(seg_t* seg, INT64 x2, INT64 y2)
|
||||||
{
|
{
|
||||||
if (!seg->linedef->dy)
|
if (!seg->linedef->dy)
|
||||||
return abs(y2 - seg->v1->y);
|
return llabs(y2 - seg->v1->y);
|
||||||
else if (!seg->linedef->dx)
|
else if (!seg->linedef->dx)
|
||||||
return abs(x2 - seg->v1->x);
|
return llabs(x2 - seg->v1->x);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
INT64 dx = (seg->v2->x)-(seg->v1->x);
|
INT64 dx = (seg->v2->x)-(seg->v1->x);
|
||||||
|
|
Loading…
Reference in a new issue