mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 00:20:51 +00:00
- fixed bad attempt at restoring position in A_CustomBulletAttack.
This commit is contained in:
parent
38cffa7646
commit
c1a86e9a4d
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue