mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- 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:
parent
f5386a706f
commit
60b6dbadb2
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue