From 3c4d9b4c846da392da8f0a641fada356e0645694 Mon Sep 17 00:00:00 2001 From: teees Date: Fri, 15 Apr 2016 14:06:21 +0200 Subject: [PATCH] Fix barrel recoil being set immediately, not when actually firing --- OpenRA.Mods.Common/Traits/Armament.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Armament.cs b/OpenRA.Mods.Common/Traits/Armament.cs index 45fd8d3a2a..36f06874cc 100644 --- a/OpenRA.Mods.Common/Traits/Armament.cs +++ b/OpenRA.Mods.Common/Traits/Armament.cs @@ -233,14 +233,14 @@ namespace OpenRA.Mods.Common.Traits if (args.Weapon.Report != null && args.Weapon.Report.Any()) Game.Sound.Play(args.Weapon.Report.Random(self.World.SharedRandom), self.CenterPosition); + + foreach (var na in self.TraitsImplementing()) + na.Attacking(self, target, this, barrel); + + Recoil = Info.Recoil; } }); - foreach (var na in self.TraitsImplementing()) - na.Attacking(self, target, this, barrel); - - Recoil = Info.Recoil; - if (--Burst > 0) FireDelay = Weapon.BurstDelay; else