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:
helixhorned 2013-02-01 19:56:26 +00:00
parent 163c019209
commit 77ecaa900a

View file

@ -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);