mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-18 03:22:35 +00:00
Clamp Top float modulation
This commit is contained in:
parent
56a5432f41
commit
cc7ceff30e
1 changed files with 4 additions and 2 deletions
|
|
@ -256,7 +256,8 @@ modulate (mobj_t *top)
|
|||
|
||||
if (top_float(top) > 0)
|
||||
{
|
||||
top_float(top) -= hover_step;
|
||||
top_float(top) = max(0,
|
||||
top_float(top) - hover_step);
|
||||
}
|
||||
else if (P_IsObjectOnGround(top))
|
||||
{
|
||||
|
|
@ -276,7 +277,8 @@ modulate (mobj_t *top)
|
|||
|
||||
if (top_float(top) < max_hover)
|
||||
{
|
||||
top_float(top) += hover_step;
|
||||
top_float(top) = min(max_hover,
|
||||
top_float(top) + hover_step);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue