mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-13 16:07:55 +00:00
Fixed: segangle is only 16-bits, so AngleToFloat won't work on it directly
This commit is contained in:
parent
8ad49f5d33
commit
b796a5fed6
1 changed files with 1 additions and 1 deletions
|
@ -1314,7 +1314,7 @@ void P_LoadSegs (MapData * map)
|
||||||
// errors _can_ cause firelines.
|
// errors _can_ cause firelines.
|
||||||
|
|
||||||
DAngle ptp_angle = (li->v2->fPos() - li->v1->fPos()).Angle();
|
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);
|
DAngle delta_angle = absangle(ptp_angle, seg_angle);
|
||||||
|
|
||||||
if (delta_angle >= 1.)
|
if (delta_angle >= 1.)
|
||||||
|
|
Loading…
Reference in a new issue