mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- Use deltaangle()
in a few places with our DAngle horizon.
This commit is contained in:
parent
1e19b32b59
commit
1fb85b0a8d
1 changed files with 2 additions and 2 deletions
|
@ -1761,7 +1761,7 @@ static void onMotorcycle(int snum, ESyncBits &actions)
|
|||
}
|
||||
if (horiz != FRACUNIT)
|
||||
{
|
||||
p->horizon.addadjustment(maphoriz(horiz) - p->horizon.horiz);
|
||||
p->horizon.addadjustment(deltaangle(p->horizon.horiz, maphoriz(horiz)));
|
||||
}
|
||||
|
||||
const DAngle adjust = mapangle(-510);
|
||||
|
@ -2029,7 +2029,7 @@ static void onBoat(int snum, ESyncBits &actions)
|
|||
}
|
||||
if (horiz != FRACUNIT)
|
||||
{
|
||||
p->horizon.addadjustment(maphoriz(horiz) - p->horizon.horiz);
|
||||
p->horizon.addadjustment(deltaangle(p->horizon.horiz, maphoriz(horiz)));
|
||||
}
|
||||
|
||||
if (p->MotoSpeed > 0 && p->on_ground == 1 && (p->vehTurnLeft || p->vehTurnRight))
|
||||
|
|
Loading…
Reference in a new issue