Fix extra projectiles in I WANT DIE not being aimed.

This commit is contained in:
Mari the Deer 2021-02-13 12:50:56 +01:00
commit 20e67749d1
2 changed files with 5 additions and 3 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r266 \cu(Fri 12 Feb 20:57:26 CET 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r266 \cu(2021-02-12 20:57:26)\c-";
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r267 \cu(Sat 13 Feb 12:50:56 CET 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r267 \cu(2021-02-13 12:50:56)\c-";

View file

@ -1777,7 +1777,9 @@ Class SWWMHandler : EventHandler
e.Thing.speed *= 2;
e.Thing.vel *= 2;
Vector3 x, y, z;
[x, y, z] = swwm_CoordUtil.GetAxes(e.Thing.pitch,e.Thing.angle,e.Thing.roll);
double ang = e.Thing.target.target?e.Thing.AngleTo(e.Thing.target.target):e.Thing.angle;
double pt = e.Thing.target.target?SWWMUtility.PitchTo(e.Thing,e.Thing.target.target,.5):e.Thing.pitch;
[x, y, z] = swwm_CoordUtil.GetAxes(pt,ang,e.Thing.roll);
int numpt = Random[ExtraMissiles](1,2);
for ( int i=0; i<numpt; i++ )
{