Attempt to work around odd behavior when attempting to use stuff like wall aligned sprites with the new version of clipmove

The behavior was always "wrong" as clipmove does not handle movement of lines, just movement of clip boxes against lines and face sprite points, but the newer version of clipmove actively bounces sprites away from lines they would otherwise clip into. This was causing wall-aligned sprites that called any functions that ended up calling clipmove to get pushed away from the wall unintentionally.

git-svn-id: https://svn.eduke32.com/eduke32@7932 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-08-09 09:28:22 +00:00 committed by Christoph Oelckers
parent 53cd67b0f2
commit 3b98ba6561

View file

@ -431,6 +431,8 @@ int A_GetClipdist(int spriteNum, int clipDist)
if (A_CheckSpriteFlags(spriteNum, SFLAG_REALCLIPDIST))
clipDist = pSprite->clipdist << 2;
else if ((pSprite->cstat & 48) == 16)
clipDist = 0;
else if (isEnemy)
{
if (pSprite->xrepeat > 60)