fix profile issue
This commit is contained in:
parent
ccc8316a2f
commit
c93f896bc5
@ -405,7 +405,9 @@ namespace IW4MAdmin.Application
|
|||||||
.AddSingleton<IScriptCommandFactory, ScriptCommandFactory>()
|
.AddSingleton<IScriptCommandFactory, ScriptCommandFactory>()
|
||||||
.AddSingleton<IAuditInformationRepository, AuditInformationRepository>()
|
.AddSingleton<IAuditInformationRepository, AuditInformationRepository>()
|
||||||
.AddSingleton<IEntityService<EFClient>, ClientService>()
|
.AddSingleton<IEntityService<EFClient>, ClientService>()
|
||||||
|
#pragma warning disable CS0618
|
||||||
.AddSingleton<IMetaService, MetaService>()
|
.AddSingleton<IMetaService, MetaService>()
|
||||||
|
#pragma warning restore CS0618
|
||||||
.AddSingleton<IMetaServiceV2, MetaServiceV2>()
|
.AddSingleton<IMetaServiceV2, MetaServiceV2>()
|
||||||
.AddSingleton<ClientService>()
|
.AddSingleton<ClientService>()
|
||||||
.AddSingleton<PenaltyService>()
|
.AddSingleton<PenaltyService>()
|
||||||
|
@ -269,7 +269,7 @@ namespace IW4MAdmin.Plugins.Stats
|
|||||||
double chestAbdomenRatio = 0;
|
double chestAbdomenRatio = 0;
|
||||||
double hitOffsetAverage = 0;
|
double hitOffsetAverage = 0;
|
||||||
double averageSnapValue = 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))
|
if (clientStats.Any(cs => cs.HitLocations.Count > 0))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user