mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-10 08:44:25 +00:00
K_DoPogoSpring: Handle player->trickpanel set directly
This commit is contained in:
parent
3f926d7c6e
commit
120b567ba2
4 changed files with 3 additions and 10 deletions
|
|
@ -6253,6 +6253,9 @@ void K_DoPogoSpring(mobj_t *mo, fixed_t vertispeed, UINT8 sound)
|
|||
|
||||
if (mo->player)
|
||||
{
|
||||
mo->player->trickpanel = 1;
|
||||
mo->player->pflags |= PF_TRICKDELAY;
|
||||
|
||||
if (mo->player->sneakertimer)
|
||||
{
|
||||
thrust = FixedMul(thrust, 5*FRACUNIT/4);
|
||||
|
|
|
|||
|
|
@ -485,8 +485,6 @@ void K_ProcessTerrainEffect(mobj_t *mo)
|
|||
fixed_t speed = FixedHypot(mo->momx, mo->momy);
|
||||
fixed_t upwards = 16 * terrain->trickPanel;
|
||||
|
||||
player->trickpanel = 1;
|
||||
player->pflags |= PF_TRICKDELAY;
|
||||
K_DoPogoSpring(mo, upwards, 1);
|
||||
|
||||
// Reduce speed
|
||||
|
|
|
|||
|
|
@ -199,8 +199,6 @@ static void RegularDashRingLaunch(player_t *player, mobj_t *ring)
|
|||
static void RainbowDashRingLaunch(player_t *player, mobj_t *ring)
|
||||
{
|
||||
player->mo->eflags &= ~MFE_SPRUNG;
|
||||
player->trickpanel = 1;
|
||||
player->pflags |= PF_TRICKDELAY;
|
||||
K_DoPogoSpring(player->mo, 0, 0);
|
||||
DashRingLaunch(player, ring);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -512,12 +512,6 @@ static void P_DoFanAndGasJet(mobj_t *spring, mobj_t *object)
|
|||
|
||||
if (spring->thing_args[1])
|
||||
{
|
||||
if (object->player)
|
||||
{
|
||||
object->player->trickpanel = 1;
|
||||
object->player->pflags |= PF_TRICKDELAY;
|
||||
}
|
||||
|
||||
K_DoPogoSpring(object, 32<<FRACBITS, 0);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue