Fix IDE0200
This commit is contained in:
committed by
Gustas Kažukauskas
parent
ce3ad6fbb3
commit
0338258b45
@@ -50,7 +50,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
// All the map cells that visually overlap the current cell
|
||||
var testCells = w.Map.ProjectedCellsCovering(uv)
|
||||
.SelectMany(puv => w.Map.Unproject(puv));
|
||||
.SelectMany(w.Map.Unproject);
|
||||
if (testCells.Any(x => x.V >= uv.V + 4))
|
||||
w.Map.CustomTerrain[uv] = tileType;
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
foreach (var n in groupsNode.Value.Nodes)
|
||||
{
|
||||
var group = FieldLoader.GetValue<uint[]>(n.Key, n.Value.Value)
|
||||
.Select(a => self.World.GetActorById(a)).Where(a => a != null);
|
||||
.Select(self.World.GetActorById).Where(a => a != null);
|
||||
controlGroups[Exts.ParseInt32Invariant(n.Key)].AddRange(group);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -191,7 +191,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (selectionNode != null)
|
||||
{
|
||||
var selected = FieldLoader.GetValue<uint[]>("Selection", selectionNode.Value.Value)
|
||||
.Select(a => self.World.GetActorById(a)).Where(a => a != null);
|
||||
.Select(self.World.GetActorById).Where(a => a != null);
|
||||
Combine(self.World, selected, false, false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -303,7 +303,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
if (newShroud != null)
|
||||
{
|
||||
cellVisibility = puv => newShroud.GetVisibility(puv);
|
||||
cellVisibility = newShroud.GetVisibility;
|
||||
newShroud.OnShroudChanged += UpdateShroudCell;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user