Commit 740e1bcb authored by Richard Gobeille's avatar Richard Gobeille
Browse files

Duke3d: fix an error in the autoaim logic where the z coord wouldn't be...

Duke3d: fix an error in the autoaim logic where the z coord wouldn't be adjusted for CSTAT_SPRITE_YCENTER when playing Fury in EDuke32 (retail Fury builds were not affected)
parent 6353ffe2
......@@ -374,12 +374,8 @@ static int GetAutoAimAng(int spriteNum, int playerNum, int projecTile, int zAdju
auto const pSprite = (uspriteptr_t)&sprite[returnSprite];
int zCenter = 2 * (pSprite->yrepeat * tilesiz[pSprite->picnum].y) + zAdjust;
#ifndef EDUKE32_STANDALONE
if (!FURY && aimFlags &&
((pSprite->picnum >= GREENSLIME && pSprite->picnum <= GREENSLIME + 7) || pSprite->picnum == ROTATEGUN || pSprite->cstat & CSTAT_SPRITE_YCENTER))
#else
if (aimFlags && pSprite->cstat & CSTAT_SPRITE_YCENTER)
#endif
if (aimFlags &&
(STANDALONE_EVAL(false, (pSprite->picnum >= GREENSLIME && pSprite->picnum <= GREENSLIME + 7) || pSprite->picnum == ROTATEGUN) || pSprite->cstat & CSTAT_SPRITE_YCENTER))
zCenter -= ZOFFSET3;
int spriteDist = safeldist(g_player[playerNum].ps->i, &sprite[returnSprite]);
......
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