use right game for estimated score

This commit is contained in:
RaidMax 2021-07-01 13:06:31 -05:00
parent 7444cb6472
commit 9c6ff6f353

View File

@ -886,10 +886,10 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
victimStats.LastScore = 0;
}
var estimatedAttackerScore = attacker.CurrentServer.GameName != Server.Game.SHG1
var estimatedAttackerScore = attacker.CurrentServer.GameName != Server.Game.CSGO
? attacker.Score
: attackerStats.SessionKills * 50;
var estimatedVictimScore = attacker.CurrentServer.GameName != Server.Game.SHG1
var estimatedVictimScore = attacker.CurrentServer.GameName != Server.Game.CSGO
? victim.Score
: victimStats.SessionKills * 50;