- fixed bad attempt at restoring position in A_CustomBulletAttack.

This commit is contained in:
Christoph Oelckers 2018-12-23 12:13:53 +01:00
parent 38cffa7646
commit c1a86e9a4d

View file

@ -95,6 +95,7 @@ extend class Actor
double x = Spawnofs_xy * cos(pangle); double x = Spawnofs_xy * cos(pangle);
double y = Spawnofs_xy * sin(pangle); double y = Spawnofs_xy * sin(pangle);
let pos = self.pos;
SetXYZ(Vec3Offset(x, y, 0.)); SetXYZ(Vec3Offset(x, y, 0.));
let proj = SpawnMissileAngleZSpeed(Pos.Z + GetBobOffset() + Spawnheight, missile, self.Angle, 0, GetDefaultByType(missile).Speed, self, false); let proj = SpawnMissileAngleZSpeed(Pos.Z + GetBobOffset() + Spawnheight, missile, self.Angle, 0, GetDefaultByType(missile).Speed, self, false);
SetXYZ(pos); SetXYZ(pos);