- fixed PlaySpawnSound call in A_ThrowGrenade

This commit is contained in:
Blue Shadow 2019-06-04 23:24:31 +03:00 committed by alexey.lysiuk
parent 87c426dcfd
commit b026b7a880
1 changed files with 1 additions and 1 deletions

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