From cb80def1227e19a7a104888a0c9d0d8aab512287 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sun, 16 Jun 2019 14:49:04 -0500 Subject: [PATCH] update version make sure ac snapshots are saved --- Application/Application.csproj | 4 ++-- Plugins/Stats/Helpers/StatManager.cs | 15 ++++++++++----- 2 files changed, 12 insertions(+), 7 deletions(-) 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);