mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
- Duke (RR): Clean up some unnecessary FixedToFloat()
usage with the fixedhoriz
asbuildf()
method.
This commit is contained in:
parent
86166f5e67
commit
523285b9b0
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue