- 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.
This commit is contained in:
Christoph Oelckers 2018-06-05 20:35:01 +02:00
parent f5386a706f
commit 60b6dbadb2

View file

@ -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
}