- 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.

(cherry picked from commit 60b6dbadb2)
This commit is contained in:
Christoph Oelckers 2018-06-05 20:35:01 +02:00 committed by drfrag666
parent f70715e25a
commit a8c0e67b21

View file

@ -4280,6 +4280,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
}
@ -4298,6 +4299,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
}