- fixed PlaySpawnSound call in A_ThrowGrenade

This commit is contained in:
Blue Shadow 2019-06-04 23:24:31 +03:00 committed by drfrag
parent e4f0c366c4
commit 6b3a7ace0b

View file

@ -492,7 +492,7 @@ extend class Actor
let bo = Spawn(missile, pos + (0, 0, (-Floorclip + GetBobOffset() + zheight + 35 + (player? player.crouchoffset : 0.))), ALLOW_REPLACE); let bo = Spawn(missile, pos + (0, 0, (-Floorclip + GetBobOffset() + zheight + 35 + (player? player.crouchoffset : 0.))), ALLOW_REPLACE);
if (bo) if (bo)
{ {
bo.PlaySpawnSound(self); self.PlaySpawnSound(bo);
if (xyvel != 0) if (xyvel != 0)
bo.Speed = xyvel; bo.Speed = xyvel;
bo.Angle = Angle + (random[grenade](-4, 3) * (360./256.)); bo.Angle = Angle + (random[grenade](-4, 3) * (360./256.));