mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Fix all hitscan weapons (not only pistol) wrongly fire without spread at enemies.
Introduced in r3358, where I missed a condition inside an 'if'. git-svn-id: https://svn.eduke32.com/eduke32@3453 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
163c019209
commit
77ecaa900a
1 changed files with 3 additions and 1 deletions
|
@ -1239,7 +1239,9 @@ int32_t A_Shoot(int32_t i, int32_t atwith)
|
|||
if (s->extra >= 0) s->shade = -96;
|
||||
|
||||
if (p >= 0)
|
||||
P_PreFireHitscan(i, p, atwith, &srcvect, &zvel, &sa, 1, 1);
|
||||
P_PreFireHitscan(i, p, atwith, &srcvect, &zvel, &sa,
|
||||
atwith == SHOTSPARK1__STATIC && !WW2GI && !NAM,
|
||||
1);
|
||||
else
|
||||
A_PreFireHitscan(s, &srcvect, &zvel, &sa, 1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue