mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- 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:
parent
9440ddb68f
commit
d38a3a1fb1
1 changed files with 1 additions and 1 deletions
|
@ -847,7 +847,7 @@ loc_flag:
|
||||||
int var_50 = (fix16_to_int(sPlayerInput[nPlayer].horizon) - 92) << 2;
|
int var_50 = (fix16_to_int(sPlayerInput[nPlayer].horizon) - 92) << 2;
|
||||||
nHeight -= var_50;
|
nHeight -= var_50;
|
||||||
|
|
||||||
if (sPlayerInput[nPlayer].nTarget >= 0)
|
if (sPlayerInput[nPlayer].nTarget >= 0 && cl_autoaim)
|
||||||
{
|
{
|
||||||
assert(sprite[sPlayerInput[nPlayer].nTarget].sectnum < kMaxSectors);
|
assert(sprite[sPlayerInput[nPlayer].nTarget].sectnum < kMaxSectors);
|
||||||
var_50 = sPlayerInput[nPlayer].nTarget + 10000;
|
var_50 = sPlayerInput[nPlayer].nTarget + 10000;
|
||||||
|
|
Loading…
Reference in a new issue