Fix bug with sprite heights and autoaim targeting

git-svn-id: https://svn.eduke32.com/eduke32@7702 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-06-25 11:28:44 +00:00 committed by Christoph Oelckers
parent 2f9ca17507
commit 87b136eb79

View file

@ -300,9 +300,9 @@ static int A_FindTargetSprite(const spritetype *pSprite, int projAng, int projec
} }
#ifndef EDUKE32_STANDALONE #ifndef EDUKE32_STANDALONE
int const zOffset = IONMAIDEN ? 0 : (PN(spriteNum) == ORGANTIC || PN(spriteNum) == ROTATEGUN) ? 0 : ZOFFSET5; int const zOffset = (!IONMAIDEN && (PN(spriteNum) == ORGANTIC || PN(spriteNum) == ROTATEGUN)) ? 0 : ZOFFSET5;
#else #else
int const zOffset = 0; int const zOffset = ZOFFSET5;
#endif #endif
int const canSee = cansee(SX(spriteNum), SY(spriteNum), SZ(spriteNum) - zOffset, SECT(spriteNum), int const canSee = cansee(SX(spriteNum), SY(spriteNum), SZ(spriteNum) - zOffset, SECT(spriteNum),
pSprite->x, pSprite->y, pSprite->z - ZOFFSET5, pSprite->sectnum); pSprite->x, pSprite->y, pSprite->z - ZOFFSET5, pSprite->sectnum);