From 647520e06768faf44176fc9216165cc0341de9b2 Mon Sep 17 00:00:00 2001 From: MascaraSnake Date: Mon, 17 Jun 2019 08:41:51 +0200 Subject: [PATCH] Adjusted the height difference for track switching --- src/p_user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_user.c b/src/p_user.c index 630864e6f..a2765e86b 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -9769,7 +9769,7 @@ static sector_t *P_GetMinecartSector(fixed_t x, fixed_t y, fixed_t z, fixed_t *n continue; *nz = *rover->t_slope ? P_GetZAt(*rover->t_slope, x, y) : *rover->topheight; - if (abs(z - *nz) <= 40*FRACUNIT) + if (abs(z - *nz) <= 56*FRACUNIT) { sec = §ors[rover->secnum]; return sec; @@ -9779,7 +9779,7 @@ static sector_t *P_GetMinecartSector(fixed_t x, fixed_t y, fixed_t z, fixed_t *n } *nz = sec->f_slope ? P_GetZAt(sec->f_slope, x, y) : sec->floorheight; - if (abs(z - *nz) > 40*FRACUNIT) + if (abs(z - *nz) > 56*FRACUNIT) return NULL; return sec;