Fix RCS1084
This commit is contained in:
@@ -998,6 +998,9 @@ dotnet_diagnostic.RCS1074.severity = warning
|
||||
# Use 'Count' property instead of 'Any' method.
|
||||
dotnet_diagnostic.RCS1080.severity = warning
|
||||
|
||||
# Use coalesce expression instead of conditional expression.
|
||||
dotnet_diagnostic.RCS1084.severity = warning
|
||||
|
||||
# Remove empty region.
|
||||
dotnet_diagnostic.RCS1091.severity = warning
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@ namespace OpenRA.Mods.Cnc.Activities
|
||||
if (pos.CanEnterCell(destination) && teleporter.Owner.Shroud.IsExplored(destination))
|
||||
return destination;
|
||||
|
||||
var max = maximumDistance != null ? maximumDistance.Value : teleporter.World.Map.Grid.MaximumTileSearchRange;
|
||||
var max = maximumDistance ?? teleporter.World.Map.Grid.MaximumTileSearchRange;
|
||||
foreach (var tile in self.World.Map.FindTilesInCircle(destination, max))
|
||||
{
|
||||
if (teleporter.Owner.Shroud.IsExplored(tile)
|
||||
|
||||
Reference in New Issue
Block a user