From 14ef6b5774178491fe3e6421fdec0a99143b175a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Tue, 30 Jul 2024 21:43:08 +0200 Subject: [PATCH] Fix formatting rule warnings. --- .../UtilityCommands/ImportTiberianSunMapCommand.cs | 6 ++++-- OpenRA.Mods.Common/Graphics/BorderedRegionRenderable.cs | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/OpenRA.Mods.Cnc/UtilityCommands/ImportTiberianSunMapCommand.cs b/OpenRA.Mods.Cnc/UtilityCommands/ImportTiberianSunMapCommand.cs index 4b74a24d34..c135eef675 100644 --- a/OpenRA.Mods.Cnc/UtilityCommands/ImportTiberianSunMapCommand.cs +++ b/OpenRA.Mods.Cnc/UtilityCommands/ImportTiberianSunMapCommand.cs @@ -212,7 +212,8 @@ namespace OpenRA.Mods.Cnc.UtilityCommands { // "tib" - Regular Tiberium { - 0x01, new byte[] + 0x01, + new byte[] { 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79 @@ -221,7 +222,8 @@ namespace OpenRA.Mods.Cnc.UtilityCommands // "btib" - Blue Tiberium { - 0x02, new byte[] + 0x02, + new byte[] { 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, diff --git a/OpenRA.Mods.Common/Graphics/BorderedRegionRenderable.cs b/OpenRA.Mods.Common/Graphics/BorderedRegionRenderable.cs index cf10a8d5a7..7027a7900f 100644 --- a/OpenRA.Mods.Common/Graphics/BorderedRegionRenderable.cs +++ b/OpenRA.Mods.Common/Graphics/BorderedRegionRenderable.cs @@ -25,8 +25,8 @@ namespace OpenRA.Mods.Common.Graphics static readonly Dictionary Offset2CornerIndex = new() { { new CVec(0, -1), (int)Corner.TopLeft }, - { new CVec(1, 0), (int)Corner.TopRight }, - { new CVec(0, 1), (int)Corner.BottomRight }, + { new CVec(1, 0), (int)Corner.TopRight }, + { new CVec(0, 1), (int)Corner.BottomRight }, { new CVec(-1, 0), (int)Corner.BottomLeft }, };