From 60b6dbadb2c06b23e463ab0d759fb38abd0ba3c7 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 5 Jun 2018 20:35:01 +0200 Subject: [PATCH] - fixed autoaiming for unranged attacks. The abort condition for the extended checks must completely stop any further processing but the check for this was missing. --- src/p_map.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/p_map.cpp b/src/p_map.cpp index 8181df71b..6853bfedf 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -4271,6 +4271,7 @@ struct aim_t thingtoppitch = -VecToAngle(exitdist, th->Top() - shootz); if (thingtoppitch > bottompitch) continue; } + else continue; // shot over the thing } else continue; // shot over the thing } @@ -4289,6 +4290,7 @@ struct aim_t thingbottompitch = -VecToAngle(exitdist, th->Z() - shootz); if (thingbottompitch < toppitch) continue; } + else continue; // shot over the thing } continue; // shot under the thing }