Commit 81f7c71b authored by Richard Gobeille's avatar Richard Gobeille
Browse files

engine: make floor sprites clip a little more like floors

parent c5f07af9
......@@ -1417,7 +1417,7 @@ int32_t clipmove(vec3_t * const pos, int16_t * const sectnum, int32_t xvect, int
case CSTAT_SPRITE_ALIGNMENT_FLOOR:
{
if (pos->z > spr->z-flordist && pos->z < spr->z+ceildist)
if (pos->z > spr->z-flordist+CLIPCURBHEIGHT && pos->z < spr->z+ceildist-CLIPCURBHEIGHT)
{
if ((cstat&64) != 0)
if ((pos->z > spr->z) == ((cstat&8)==0))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment