diff --git a/src/p_setup.c b/src/p_setup.c index a06ea14db..1465e718f 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -3873,7 +3873,7 @@ static inline float P_SegLengthFloat(seg_t *seg) dx = FIXED_TO_FLOAT(seg->v2->x - seg->v1->x); dy = FIXED_TO_FLOAT(seg->v2->y - seg->v1->y); - return (float)hypot(dx, dy); + return hypotf(dx, dy); } #endif @@ -4033,7 +4033,7 @@ static void P_LoadSegs(UINT8 *data) seg->length = P_SegLength(seg); #ifdef HWRENDER - seg->flength = (rendermode == render_opengl) ? P_SegLengthFloat(seg) : 0; + seg->flength = P_SegLengthFloat(seg); #endif seg->glseg = false;