Fixed: segangle is only 16-bits, so AngleToFloat won't work on it directly

This commit is contained in:
Randy Heit 2016-04-06 08:44:46 -05:00
parent 8ad49f5d33
commit b796a5fed6

View file

@ -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.)