fix profile issue

This commit is contained in:
RaidMax 2022-03-24 08:40:42 -05:00
parent ccc8316a2f
commit c93f896bc5
2 changed files with 3 additions and 1 deletions

View File

@ -405,7 +405,9 @@ namespace IW4MAdmin.Application
.AddSingleton<IScriptCommandFactory, ScriptCommandFactory>()
.AddSingleton<IAuditInformationRepository, AuditInformationRepository>()
.AddSingleton<IEntityService<EFClient>, ClientService>()
#pragma warning disable CS0618
.AddSingleton<IMetaService, MetaService>()
#pragma warning restore CS0618
.AddSingleton<IMetaServiceV2, MetaServiceV2>()
.AddSingleton<ClientService>()
.AddSingleton<PenaltyService>()

View File

@ -269,7 +269,7 @@ namespace IW4MAdmin.Plugins.Stats
double chestAbdomenRatio = 0;
double hitOffsetAverage = 0;
double averageSnapValue = 0;
var maxStrain = clientStats.Any(c => c.MaxStrain > 0) ? 0 : clientStats.Max(cs => cs.MaxStrain);
var maxStrain = !clientStats.Any(c => c.MaxStrain > 0) ? 0 : clientStats.Max(cs => cs.MaxStrain);
if (clientStats.Any(cs => cs.HitLocations.Count > 0))
{