Fix Grow on Trick Panels sending you to ridiculous heights.

This commit is contained in:
toaster 2022-05-24 18:09:40 +01:00
parent 8b9adb1b4c
commit 0d82b075b0

View file

@ -5615,7 +5615,6 @@ static void K_DoShrink(player_t *user)
void K_DoPogoSpring(mobj_t *mo, fixed_t vertispeed, UINT8 sound) void K_DoPogoSpring(mobj_t *mo, fixed_t vertispeed, UINT8 sound)
{ {
const fixed_t vscale = mapobjectscale + (mo->scale - mapobjectscale);
fixed_t thrust = 0; fixed_t thrust = 0;
if (mo->player && mo->player->spectator) if (mo->player && mo->player->spectator)
@ -5656,7 +5655,7 @@ void K_DoPogoSpring(mobj_t *mo, fixed_t vertispeed, UINT8 sound)
//CONS_Printf("Got boost: %d%\n", mo->player->trickboostpower*100 / FRACUNIT); //CONS_Printf("Got boost: %d%\n", mo->player->trickboostpower*100 / FRACUNIT);
} }
mo->momz = FixedMul(thrust, vscale); mo->momz = FixedMul(thrust, mapobjectscale);
if (mo->eflags & MFE_UNDERWATER) if (mo->eflags & MFE_UNDERWATER)
{ {