From b796a5fed6833768313824ff07be7420af3ff12c Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Wed, 6 Apr 2016 08:44:46 -0500 Subject: [PATCH] Fixed: segangle is only 16-bits, so AngleToFloat won't work on it directly --- src/p_setup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_setup.cpp b/src/p_setup.cpp index c7395208e..89ca3a799 100644 --- a/src/p_setup.cpp +++ b/src/p_setup.cpp @@ -1314,7 +1314,7 @@ void P_LoadSegs (MapData * map) // errors _can_ cause firelines. DAngle ptp_angle = (li->v2->fPos() - li->v1->fPos()).Angle(); - DAngle seg_angle = AngleToFloat(segangle); + DAngle seg_angle = AngleToFloat(segangle << 16); DAngle delta_angle = absangle(ptp_angle, seg_angle); if (delta_angle >= 1.)