File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
M/Controls/Sociology/Dialogs Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -909,8 +909,8 @@ private void UpdateBoxesXZ()
909909
910910 private void UpdateParticleScores ( )
911911 {
912- float ScoreMin = MathHelper . Min ( Particles . Select ( p => p . Score ) ) ;
913- float ScoreMax = MathHelper . Max ( Particles . Select ( p => p . Score ) ) ;
912+ float ScoreMin = Particles . Select ( p => p . Score ) . Min ( ) ;
913+ float ScoreMax = Particles . Select ( p => p . Score ) . Max ( ) ;
914914 float ScoreSpread = ScoreMax - ScoreMin ;
915915
916916 SliderParticleScoreMin . MinValue = ( decimal ) ScoreMin ;
Original file line number Diff line number Diff line change @@ -586,7 +586,7 @@ await Task.Run(() =>
586586 ParticleHashes [ hash ] ++ ;
587587 }
588588
589- HashSet < string > AvailableHashes = new HashSet < string > ( Helper . Combine ( ValidSources . Select ( s => s . Files . Keys . ToArray ( ) ) ) ) ;
589+ HashSet < string > AvailableHashes = new HashSet < string > ( Helper . Combine ( ValidSources . Select ( s => s . Files . Keys . ToArray ( ) ) . ToArray ( ) ) ) ;
590590 List < string > HashesNotFound = ParticleHashes . Keys . Where ( hash => ! AvailableHashes . Contains ( hash ) ) . ToList ( ) ;
591591
592592 ParticlesUnmatched = HashesNotFound . Sum ( h => ParticleHashes [ h ] ) ;
Original file line number Diff line number Diff line change @@ -591,7 +591,7 @@ await Task.Run(() =>
591591
592592 #region Check for overlapping hashes
593593
594- string [ ] Overlapping = Helper . Combine ( Population . Sources . Select ( s => s . Files . Where ( f => NewSource . Files . ContainsKey ( f . Key ) ) . Select ( f => f . Value ) . ToArray ( ) ) ) ;
594+ string [ ] Overlapping = Helper . Combine ( Population . Sources . Select ( s => s . Files . Where ( f => NewSource . Files . ContainsKey ( f . Key ) ) . Select ( f => f . Value ) . ToArray ( ) ) . ToArray ( ) ) ;
595595 if ( Overlapping . Length > 0 )
596596 {
597597 string Offenders = "" ;
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ await Task.Run(() =>
173173 ParticleHashes [ hash ] ++ ;
174174 }
175175
176- HashSet < string > AvailableHashes = new HashSet < string > ( Helper . Combine ( ValidSources . Select ( s => s . Files . Keys . ToArray ( ) ) ) ) ;
176+ HashSet < string > AvailableHashes = new HashSet < string > ( Helper . Combine ( ValidSources . Select ( s => s . Files . Keys . ToArray ( ) ) . ToArray ( ) ) ) ;
177177 List < string > HashesNotFound = ParticleHashes . Keys . Where ( hash => ! AvailableHashes . Contains ( hash ) ) . ToList ( ) ;
178178
179179 ParticlesUnmatched = HashesNotFound . Sum ( h => ParticleHashes [ h ] ) ;
You can’t perform that action at this time.
0 commit comments