- disable implicit conversions from float to TAngle
This commit is contained in:
parent
8468f712e0
commit
f0fbdba593
66 changed files with 425 additions and 374 deletions
|
|
@ -911,7 +911,7 @@ bool MapLoader::LoadSegs (MapData * map)
|
|||
// errors _can_ cause firelines.
|
||||
|
||||
DAngle ptp_angle = (li->v2->fPos() - li->v1->fPos()).Angle();
|
||||
DAngle seg_angle = AngleToFloat(segangle << 16);
|
||||
DAngle seg_angle = DAngle::fromBam(segangle << 16);
|
||||
DAngle delta_angle = absangle(ptp_angle, seg_angle);
|
||||
|
||||
if (delta_angle >= 1.)
|
||||
|
|
@ -1996,7 +1996,7 @@ void MapLoader::LoopSidedefs (bool firstloop)
|
|||
if (sidetemp[right].b.next != NO_SIDE)
|
||||
{
|
||||
int bestright = right; // Shut up, GCC
|
||||
DAngle bestang = 360.;
|
||||
DAngle bestang = DAngle::fromDeg(360.);
|
||||
line_t *leftline, *rightline;
|
||||
DAngle ang1, ang2, ang;
|
||||
|
||||
|
|
@ -2004,7 +2004,7 @@ void MapLoader::LoopSidedefs (bool firstloop)
|
|||
ang1 = leftline->Delta().Angle();
|
||||
if (!sidetemp[i].b.lineside)
|
||||
{
|
||||
ang1 += 180;
|
||||
ang1 += DAngle::fromDeg(180);
|
||||
}
|
||||
|
||||
while (right != NO_SIDE)
|
||||
|
|
@ -2017,7 +2017,7 @@ void MapLoader::LoopSidedefs (bool firstloop)
|
|||
ang2 = rightline->Delta().Angle();
|
||||
if (sidetemp[right].b.lineside)
|
||||
{
|
||||
ang2 += 180;
|
||||
ang2 += DAngle::fromDeg(180);
|
||||
}
|
||||
|
||||
ang = (ang2 - ang1).Normalized360();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue