diff --git a/WLEditor/Overworld/PathForm.cs b/WLEditor/Overworld/PathForm.cs index 161ccb64..468b9abd 100644 --- a/WLEditor/Overworld/PathForm.cs +++ b/WLEditor/Overworld/PathForm.cs @@ -795,7 +795,7 @@ void DrawLine(List points, List colors) var miterPoints = GetMitterPoints(zoom * 4.0f); int n = 0; - foreach (var item in colors.GroupByAdjacent(x => x, (x, y) => new { Color = x, Count = y.Count() })) + foreach (var item in colors.GroupByAdjacent(x => x, (x, y) => (Color: x, Count: y.Count() ))) { brush.Color = item.Color; gPathA.FillPolygon(brush, GetLineStrip(n, item.Count + 1).ToArray(), FillMode.Winding); diff --git a/WLEditor/Rom/Overworld.cs b/WLEditor/Rom/Overworld.cs index 2fbdf880..94823a94 100644 --- a/WLEditor/Rom/Overworld.cs +++ b/WLEditor/Rom/Overworld.cs @@ -776,7 +776,7 @@ void SaveTreasurePositionPerLevel() //group levels at same position (usually duplicates) foreach (var levels in pathData - .Select((x, i) => new { Index = i, x.X, x.Y }) + .Select((x, i) => (Index: i, x.X, x.Y)) .GroupBy(x => (x.X, x.Y))) { int index = 0xFF; diff --git a/WLEditor/Selection/Selection.cs b/WLEditor/Selection/Selection.cs index 09ae3174..e4a0aa53 100644 --- a/WLEditor/Selection/Selection.cs +++ b/WLEditor/Selection/Selection.cs @@ -197,7 +197,7 @@ public List PasteSelection(Func setTileAt) int selectionWidth = reader.ReadInt32(); int selectionHeight = reader.ReadInt32(); ClipboardData[] selectionData = Enumerable.Range(0, selectionWidth * selectionHeight) - .Select((x, i) => new { Order = reader.ReadInt32(), Tile = reader.ReadInt32(), Index = i }) + .Select((x, i) => (Order: reader.ReadInt32(), Tile: reader.ReadInt32(), Index: i )) .OrderBy(x => x.Order) //used for ordering events .Select(x => new ClipboardData { Index = x.Index, Tile = x.Tile }) .ToArray();