mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- SW: When adjusting horizon in DoPlayerDeathHoriz()
, just use integer horizon values and not Q16.16.
This commit is contained in:
parent
523285b9b0
commit
59850fa768
1 changed files with 2 additions and 2 deletions
|
@ -6038,12 +6038,12 @@ DoPlayerBeginDie(PLAYERp pp)
|
|||
void
|
||||
DoPlayerDeathHoriz(PLAYERp pp, short target, short speed)
|
||||
{
|
||||
if ((pp->horizon.horiz.asq16() - IntToFixed(target)) > FRACUNIT)
|
||||
if ((pp->horizon.horiz.asbuild() - target) > 1)
|
||||
{
|
||||
pp->horizon.addadjustment(-speed);
|
||||
}
|
||||
|
||||
if ((IntToFixed(target) - pp->horizon.horiz.asq16()) > FRACUNIT)
|
||||
if ((target - pp->horizon.horiz.asbuild()) > 1)
|
||||
{
|
||||
pp->horizon.addadjustment(speed);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue