mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
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:
parent
2f9ca17507
commit
87b136eb79
1 changed files with 2 additions and 2 deletions
|
@ -300,9 +300,9 @@ static int A_FindTargetSprite(const spritetype *pSprite, int projAng, int projec
|
|||
}
|
||||
|
||||
#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
|
||||
int const zOffset = 0;
|
||||
int const zOffset = ZOFFSET5;
|
||||
#endif
|
||||
int const canSee = cansee(SX(spriteNum), SY(spriteNum), SZ(spriteNum) - zOffset, SECT(spriteNum),
|
||||
pSprite->x, pSprite->y, pSprite->z - ZOFFSET5, pSprite->sectnum);
|
||||
|
|
Loading…
Reference in a new issue