From b7e524d5d17b60f06edefc4d53ef1f2669a35517 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 23 Feb 2019 05:10:59 +0000 Subject: [PATCH] Fix autoaim bug introduced in r6942 git-svn-id: https://svn.eduke32.com/eduke32@7352 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/duke3d/src/player.cpp b/source/duke3d/src/player.cpp index f79928b66..a8df433b3 100644 --- a/source/duke3d/src/player.cpp +++ b/source/duke3d/src/player.cpp @@ -297,7 +297,7 @@ static int A_FindTargetSprite(const spritetype *pSprite, int projAng, int projec } #ifndef EDUKE32_STANDALONE - int const zOffset = (PN(spriteNum) == ORGANTIC || PN(spriteNum) == ROTATEGUN) ? ZOFFSET5 : 0; + int const zOffset = (PN(spriteNum) == ORGANTIC || PN(spriteNum) == ROTATEGUN) ? 0 : ZOFFSET5; #else int const zOffset = 0; #endif