Update r_segs.c

This commit is contained in:
Jimita 2018-12-20 16:15:19 -03:00 committed by GitHub
parent ffd5061531
commit 5b285a60a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1651,9 +1651,9 @@ static void R_RenderSegLoop (void)
static INT64 R_CalcSegDist(seg_t* seg, INT64 x2, INT64 y2)
{
if (!seg->linedef->dy)
return abs(y2 - seg->v1->y);
return llabs(y2 - seg->v1->y);
else if (!seg->linedef->dx)
return abs(x2 - seg->v1->x);
return llabs(x2 - seg->v1->x);
else
{
INT64 dx = (seg->v2->x)-(seg->v1->x);