- Revert change to TAngle<T>'s / operator that snuck in.

This commit is contained in:
Mitchell Richters 2022-11-07 15:43:00 +11:00
parent 912b6a47c1
commit c8114e7ed0
4 changed files with 4 additions and 4 deletions

View file

@ -1364,7 +1364,7 @@ public:
return Degrees_ / other;
}
constexpr TAngle operator/ (TAngle other) const
constexpr double operator/ (TAngle other) const
{
return Degrees_ / other.Degrees_;
}

View file

@ -526,7 +526,7 @@ static void SetupView(PLAYER* pPlayer, DVector3& cPos, DAngle& cA, DAngle& cH, s
{
cPos.Z += bobHeight;
}
cPos.Z -= lerp(-10., 10., ((cH.Normalized180() + DAngle90) / DAngle180).Degrees());
cPos.Z -= lerp(-10., 10., (cH.Normalized180() + DAngle90) / DAngle180);
}
else
{

View file

@ -232,7 +232,7 @@ void displayweapon_d(int snum, double interpfrac)
plravel = getavel(snum) * (1. / 16.);
auto horiz = !SyncInput() ? p->horizon.sum() : p->horizon.interpolatedsum(interpfrac);
horiz16th = lerp(-16., 16., ((horiz.Normalized180() + DAngle90) / DAngle180).Degrees());
horiz16th = lerp(-16., 16., (horiz.Normalized180() + DAngle90) / DAngle180);
look_anghalf = p->angle.look_anghalf(interpfrac);
looking_arc = p->angle.looking_arc(interpfrac);
hard_landing *= 8.;

View file

@ -180,7 +180,7 @@ static void shootflamethrowerflame(DDukeActor* actor, int p, DVector3 spos, DAng
// WTF???
DAngle myang = DAngle90 - (DAngle180 - abs(abs((spos.XY() - ps[p].pos.XY()).Angle() - sang) - DAngle180));
if (ps[p].GetActor()->vel.X != 0)
vel = ((myang / DAngle90).Degrees() * ps[p].GetActor()->vel.X) + 25;
vel = ((myang / DAngle90) * ps[p].GetActor()->vel.X) + 25;
if (actor->sector()->lotag == 2 && (krand() % 5) == 0)
spawned = spawn(actor, WATERBUBBLE);
}