- added autoaim switch for Exhumed.

Pointers for the needed change taken from GDX.
This applies only to hitscan weapons the rest do not appear to autoaim.
Fixes #260
This commit is contained in:
Christoph Oelckers 2020-08-26 00:22:11 +02:00
parent 9440ddb68f
commit d38a3a1fb1
1 changed files with 1 additions and 1 deletions

View File

@ -847,7 +847,7 @@ loc_flag:
int var_50 = (fix16_to_int(sPlayerInput[nPlayer].horizon) - 92) << 2;
nHeight -= var_50;
if (sPlayerInput[nPlayer].nTarget >= 0)
if (sPlayerInput[nPlayer].nTarget >= 0 && cl_autoaim)
{
assert(sprite[sPlayerInput[nPlayer].nTarget].sectnum < kMaxSectors);
var_50 = sPlayerInput[nPlayer].nTarget + 10000;