mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix ground followers phasing through FOFs
This commit is contained in:
parent
494f4c1641
commit
7d6289817d
1 changed files with 2 additions and 4 deletions
|
|
@ -477,10 +477,8 @@ void K_HandleFollower(player_t *player)
|
||||||
|
|
||||||
if (fl->mode == FOLLOWERMODE_GROUND)
|
if (fl->mode == FOLLOWERMODE_GROUND)
|
||||||
{
|
{
|
||||||
sector_t *sec = R_PointInSubsector(sx, sy)->sector;
|
fh = min(fh, P_FloorzAtPos(sx, sy, player->follower->z, ourheight));
|
||||||
|
ch = max(ch, P_CeilingzAtPos(sx, sy, player->follower->z, ourheight) - ourheight);
|
||||||
fh = min(fh, P_GetFloorZ(player->follower, sec, sx, sy, NULL));
|
|
||||||
ch = max(ch, P_GetCeilingZ(player->follower, sec, sx, sy, NULL) - ourheight);
|
|
||||||
|
|
||||||
if (P_IsObjectOnGround(player->mo) == false)
|
if (P_IsObjectOnGround(player->mo) == false)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue