1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

update version

make sure ac snapshots are saved
This commit is contained in:
RaidMax
2019-06-16 14:49:04 -05:00
parent d5ece456d8
commit 4e9c420f81
2 changed files with 12 additions and 7 deletions

View File

@ -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<EFHitLocationCount>().UpdateRange(clientStats.HitLocations);