- Duke (RR): Clean up some unnecessary FixedToFloat() usage with the fixedhoriz asbuildf() method.

This commit is contained in:
Mitch Richters 2021-11-01 23:30:17 +11:00
parent f3a2de92a4
commit 1363ed654c

View file

@ -1742,7 +1742,7 @@ static void onMotorcycle(int snum, ESyncBits &actions)
} }
if (horiz != FRACUNIT) if (horiz != FRACUNIT)
{ {
p->horizon.addadjustment(horiz - FixedToFloat(p->horizon.horiz.asq16())); p->horizon.addadjustment(horiz - p->horizon.horiz.asbuildf());
} }
int currSpeed = int(p->MotoSpeed); int currSpeed = int(p->MotoSpeed);
@ -2010,7 +2010,7 @@ static void onBoat(int snum, ESyncBits &actions)
} }
if (horiz != FRACUNIT) if (horiz != FRACUNIT)
{ {
p->horizon.addadjustment(horiz - FixedToFloat(p->horizon.horiz.asq16())); p->horizon.addadjustment(horiz - p->horizon.horiz.asbuildf());
} }
if (p->MotoSpeed > 0 && p->on_ground == 1 && (p->vehTurnLeft || p->vehTurnRight)) if (p->MotoSpeed > 0 && p->on_ground == 1 && (p->vehTurnLeft || p->vehTurnRight))