From eb592b01f2fbcd5b8fbd892d63e942c8873e3f45 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Sat, 8 Feb 2025 18:44:56 -0500 Subject: [PATCH] Fix Yellow Spring Panel issue Use the constant dummy thats why it exists --- src/p_spec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/p_spec.c b/src/p_spec.c index 6e76b6add..82316b422 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -5011,7 +5011,7 @@ static void P_ProcessSpeedPad(player_t *player, sector_t *sector, sector_t *rove } } -static void P_ProcessPogoSpring(player_t *player, boolean isTouching, boolean type) +static void P_ProcessPogoSpring(player_t *player, boolean isTouching, int type) { const fixed_t hscale = mapobjectscale + (mapobjectscale - player->mo->scale); const fixed_t minspeed = 24*hscale; @@ -5021,12 +5021,12 @@ static void P_ProcessPogoSpring(player_t *player, boolean isTouching, boolean ty if (!isTouching) return; - if ((player->speed > maxspeed) && type == 2) // Prevent overshooting jumps + if ((player->speed > maxspeed) && type == SSPT_YELLOW) // Prevent overshooting jumps P_InstaThrust(player->mo, pushangle, maxspeed); else if (player->speed < minspeed) // Push forward to prevent getting stuck P_InstaThrust(player->mo, pushangle, minspeed); - if (type == 2) + if (type == SSPT_YELLOW) player->pogospring = 2; else player->pogospring = 1; @@ -5034,7 +5034,7 @@ static void P_ProcessPogoSpring(player_t *player, boolean isTouching, boolean ty K_DoPogoSpring(player->mo, 0, 1); } -static void P_ProcessBoostPanel(player_t *player, boolean isTouching, boolean type) +static void P_ProcessBoostPanel(player_t *player, boolean isTouching, int type) { if (isTouching) {