mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 14:41:55 +00:00
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:
parent
53cd67b0f2
commit
3b98ba6561
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue