1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-11 07:40:54 -05:00

Adjustments to stats to support zombie client

This commit is contained in:
RaidMax
2023-05-09 21:14:13 -05:00
parent baca4f1797
commit ef4033bcb7
3 changed files with 4 additions and 3 deletions

View File

@ -181,7 +181,7 @@ public class HitCalculator : IClientStatisticCalculator
foreach (var hitInfo in new[] {attackerHitInfo, victimHitInfo})
{
if (hitInfo.MeansOfDeath == null || hitInfo.Location == null || hitInfo.Weapon == null)
if (hitInfo.MeansOfDeath == null || hitInfo.Location == null || hitInfo.Weapon == null || hitInfo.EntityId == 0)
{
_logger.LogDebug("Skipping hit because it does not contain the required data");
continue;