mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
T_Pusher: do not apply upward wind if fastfalling
This commit is contained in:
parent
6b85dacaaa
commit
ee7a29dc62
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