Fix CA1304
This commit is contained in:
committed by
Matthias Mailänder
parent
949ba589c0
commit
486a07602b
@@ -64,7 +64,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
|
||||
if (isBuildable && isBuilding && canAttack)
|
||||
{
|
||||
var name = actor.Key.ToLower();
|
||||
var name = actor.Key.ToLowerInvariant();
|
||||
if (!defences.Contains(name))
|
||||
defences.Add(name);
|
||||
}
|
||||
|
||||
@@ -93,14 +93,14 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
|
||||
if (isAircraft && isBuildable && canAttack && isKillable)
|
||||
{
|
||||
var name = actor.Key.ToLower();
|
||||
var name = actor.Key.ToLowerInvariant();
|
||||
if (!aircraft.Contains(name))
|
||||
aircraft.Add(name);
|
||||
}
|
||||
|
||||
if (isBuildable && isKillable && (isVip || (isBuilding && !isExcluded)))
|
||||
{
|
||||
var name = actor.Key.ToLower();
|
||||
var name = actor.Key.ToLowerInvariant();
|
||||
if (!vips.Contains(name))
|
||||
vips.Add(name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user