mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
Adjusted the height difference for track switching
This commit is contained in:
parent
265350d527
commit
6faaa1559d
1 changed files with 2 additions and 2 deletions
|
|
@ -9769,7 +9769,7 @@ static sector_t *P_GetMinecartSector(fixed_t x, fixed_t y, fixed_t z, fixed_t *n
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
*nz = *rover->t_slope ? P_GetZAt(*rover->t_slope, x, y) : *rover->topheight;
|
*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];
|
sec = §ors[rover->secnum];
|
||||||
return sec;
|
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;
|
*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 NULL;
|
||||||
|
|
||||||
return sec;
|
return sec;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue