- 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 86166f5e67
commit 523285b9b0

View file

@ -1742,7 +1742,7 @@ static void onMotorcycle(int snum, ESyncBits &actions)
}
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);
@ -2010,7 +2010,7 @@ static void onBoat(int snum, ESyncBits &actions)
}
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))