Commit 964c0b56 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

Revert "engine: make floor sprites clip a little more like floors"

This reverts commit 81f7c71b.

clipmove() really needs concrete indication of a moving point's starting floor height for this optimization to work correctly, and inferring that ourselves without it being explicitly passed in isn't something that would work.
parent 6a1f4ec3
......@@ -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+CLIPCURBHEIGHT && pos->z < spr->z+ceildist-CLIPCURBHEIGHT)
if (pos->z > spr->z-flordist && pos->z < spr->z+ceildist)
{
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