Skip to content
Snippets Groups Projects
Commit 50917d2e authored by Monster Iestyn's avatar Monster Iestyn
Browse files

P_FloorzAtPos: Check the normal floor's slope as well as FOF slopes, silly.

parent 9b788b55
No related branches found
No related tags found
2 merge requests!252OpenGL: Public flatsprite: The Fixening,!208P_FloorzAtPos slope fix
......@@ -4000,6 +4000,11 @@ fixed_t P_FloorzAtPos(fixed_t x, fixed_t y, fixed_t z, fixed_t height)
sector_t *sec = R_PointInSubsector(x, y)->sector;
fixed_t floorz = sec->floorheight;
#ifdef ESLOPE
if (sec->f_slope)
floorz = P_GetZAt(sec->f_slope, x, y);
#endif
// Intercept the stupid 'fall through 3dfloors' bug Tails 03-17-2002
if (sec->ffloors)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment