diff --git a/Application/Application.csproj b/Application/Application.csproj index 6c97a4e45..e9e42a771 100644 --- a/Application/Application.csproj +++ b/Application/Application.csproj @@ -6,7 +6,7 @@ 2.2.2 false RaidMax.IW4MAdmin.Application - 2.2.7.6 + 2.2.7.7 RaidMax Forever None IW4MAdmin @@ -33,7 +33,7 @@ true true 2.2.7.6 - 2.2.7.6 + 2.2.7.7 7.1 diff --git a/Plugins/Stats/Helpers/StatManager.cs b/Plugins/Stats/Helpers/StatManager.cs index c7ac7f450..581ee9d8b 100644 --- a/Plugins/Stats/Helpers/StatManager.cs +++ b/Plugins/Stats/Helpers/StatManager.cs @@ -583,21 +583,26 @@ namespace IW4MAdmin.Plugins.Stats.Helpers clientDetection.QueuedHits.RemoveAt(0); result = clientDetection.ProcessHit(oldestHit, isDamage); await ApplyPenalty(result, attacker, ctx); + + if (clientDetection.Tracker.HasChanges && result.ClientPenalty != EFPenalty.PenaltyType.Any) + { + SaveTrackedSnapshots(clientDetection, ctx); + } } result = clientDetection.ProcessTotalRatio(clientStats); await ApplyPenalty(result , attacker, ctx); + + if (clientDetection.Tracker.HasChanges && result.ClientPenalty != EFPenalty.PenaltyType.Any) + { + SaveTrackedSnapshots(clientDetection, ctx); + } } else { clientDetection.QueuedHits.Add(hit); } - - if (clientDetection.Tracker.HasChanges && result.ClientPenalty != EFPenalty.PenaltyType.Any) - { - SaveTrackedSnapshots(clientDetection, ctx); - } } ctx.Set().UpdateRange(clientStats.HitLocations);