mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-31 20:22:40 +00:00
Merge branch 'fastfall-stops-upward-wind' into 'master'
Do not apply upward wind if fastfalling Closes #585 See merge request KartKrew/Kart!1390
This commit is contained in:
commit
ef54d9c97a
1 changed files with 9 additions and 1 deletions
10
src/p_spec.c
10
src/p_spec.c
|
|
@ -9329,7 +9329,15 @@ void T_Pusher(pusher_t *p)
|
|||
|
||||
thing->momx += xspeed;
|
||||
thing->momy += yspeed;
|
||||
thing->momz += zspeed;
|
||||
|
||||
// Do not apply upwards wind if the player is
|
||||
// fastfalling. This could cancel out the increased
|
||||
// gravity from fastfalling!
|
||||
if (!(thing->player && thing->player->fastfall && zspeed * P_MobjFlip(thing) > 0))
|
||||
{
|
||||
thing->momz += zspeed;
|
||||
}
|
||||
|
||||
if (thing->player)
|
||||
{
|
||||
thing->player->cmomx += xspeed;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue