Fix IDE0350
This commit is contained in:
committed by
Gustas Kažukauskas
parent
af326bfeb8
commit
24c19f64c9
@@ -330,6 +330,10 @@ dotnet_diagnostic.IDE0304.severity = warning
|
||||
# From above, uses dotnet_style_prefer_collection_expression
|
||||
dotnet_diagnostic.IDE0305.severity = silent
|
||||
|
||||
# IDE0350 Use implicitly typed lambda
|
||||
#csharp_style_prefer_implicitly_typed_lambda_expression = true
|
||||
dotnet_diagnostic.IDE0350.severity = warning
|
||||
|
||||
## Field preferences
|
||||
|
||||
# IDE0044 Add readonly modifier
|
||||
|
||||
@@ -427,7 +427,7 @@ namespace OpenRA.Mods.Common.MapGenerator
|
||||
incompatibilities,
|
||||
Rotations,
|
||||
Mirror,
|
||||
(CPos[] sources, CPos destination) =>
|
||||
(sources, destination) =>
|
||||
{
|
||||
if (!dominant[destination])
|
||||
incompatibilities[destination] = sources
|
||||
|
||||
@@ -227,7 +227,7 @@ namespace OpenRA.Mods.Common.Traits.BotModules.Squads
|
||||
|
||||
static float RelativeSpeed(IReadOnlyCollection<Actor> own, IReadOnlyCollection<Actor> enemy)
|
||||
{
|
||||
return RelativeValue(own, enemy, 100, Average<MobileInfo>, (Actor a) => a.Info.TraitInfo<MobileInfo>().Speed);
|
||||
return RelativeValue(own, enemy, 100, Average<MobileInfo>, a => a.Info.TraitInfo<MobileInfo>().Speed);
|
||||
}
|
||||
|
||||
static float RelativeValue(IReadOnlyCollection<Actor> own, IReadOnlyCollection<Actor> enemy, float normalizeByValue,
|
||||
|
||||
Reference in New Issue
Block a user