From 07de3ba5e0ca89412a7a5271f8a27cbff8d00f80 Mon Sep 17 00:00:00 2001 From: reaperrr Date: Sat, 6 Jul 2019 01:57:55 +0200 Subject: [PATCH] Change default preview facing to 96 92 is not a multiple of 8, and all sprite actors in the official mods have at most 32 facings. --- OpenRA.Mods.Common/EditorBrushes/EditorActorBrush.cs | 2 +- OpenRA.Mods.Common/Traits/Air/Aircraft.cs | 2 +- OpenRA.Mods.Common/Traits/Husk.cs | 2 +- OpenRA.Mods.Common/Traits/Mobile.cs | 2 +- OpenRA.Mods.Common/Traits/Turreted.cs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/OpenRA.Mods.Common/EditorBrushes/EditorActorBrush.cs b/OpenRA.Mods.Common/EditorBrushes/EditorActorBrush.cs index c4c01d1a80..52b872e7d2 100644 --- a/OpenRA.Mods.Common/EditorBrushes/EditorActorBrush.cs +++ b/OpenRA.Mods.Common/EditorBrushes/EditorActorBrush.cs @@ -30,7 +30,7 @@ namespace OpenRA.Mods.Common.Widgets readonly PlayerReference owner; readonly CVec[] footprint; - int facing = 92; + int facing = 96; public EditorActorBrush(EditorViewportControllerWidget editorWidget, ActorInfo actor, PlayerReference owner, WorldRenderer wr) { diff --git a/OpenRA.Mods.Common/Traits/Air/Aircraft.cs b/OpenRA.Mods.Common/Traits/Air/Aircraft.cs index b5a3232481..98fea3476b 100644 --- a/OpenRA.Mods.Common/Traits/Air/Aircraft.cs +++ b/OpenRA.Mods.Common/Traits/Air/Aircraft.cs @@ -130,7 +130,7 @@ namespace OpenRA.Mods.Common.Traits public readonly int NumberOfTicksToVerifyAvailableAirport = 150; [Desc("Facing to use for actor previews (map editor, color picker, etc)")] - public readonly int PreviewFacing = 92; + public readonly int PreviewFacing = 96; [Desc("Display order for the facing slider in the map editor")] public readonly int EditorFacingDisplayOrder = 3; diff --git a/OpenRA.Mods.Common/Traits/Husk.cs b/OpenRA.Mods.Common/Traits/Husk.cs index 2a03e169e4..95a793fe0a 100644 --- a/OpenRA.Mods.Common/Traits/Husk.cs +++ b/OpenRA.Mods.Common/Traits/Husk.cs @@ -23,7 +23,7 @@ namespace OpenRA.Mods.Common.Traits public readonly HashSet AllowedTerrain = new HashSet(); [Desc("Facing to use for actor previews (map editor, color picker, etc)")] - public readonly int PreviewFacing = 92; + public readonly int PreviewFacing = 96; IEnumerable IActorPreviewInitInfo.ActorPreviewInits(ActorInfo ai, ActorPreviewType type) { diff --git a/OpenRA.Mods.Common/Traits/Mobile.cs b/OpenRA.Mods.Common/Traits/Mobile.cs index c9ac785c2a..ab1e94ff75 100644 --- a/OpenRA.Mods.Common/Traits/Mobile.cs +++ b/OpenRA.Mods.Common/Traits/Mobile.cs @@ -44,7 +44,7 @@ namespace OpenRA.Mods.Common.Traits public readonly string Voice = "Action"; [Desc("Facing to use for actor previews (map editor, color picker, etc)")] - public readonly int PreviewFacing = 92; + public readonly int PreviewFacing = 96; [Desc("Display order for the facing slider in the map editor")] public readonly int EditorFacingDisplayOrder = 3; diff --git a/OpenRA.Mods.Common/Traits/Turreted.cs b/OpenRA.Mods.Common/Traits/Turreted.cs index 9da3c06d20..13e8558fba 100644 --- a/OpenRA.Mods.Common/Traits/Turreted.cs +++ b/OpenRA.Mods.Common/Traits/Turreted.cs @@ -31,7 +31,7 @@ namespace OpenRA.Mods.Common.Traits public readonly WVec Offset = WVec.Zero; [Desc("Facing to use for actor previews (map editor, color picker, etc)")] - public readonly int PreviewFacing = 92; + public readonly int PreviewFacing = 96; [Desc("Display order for the turret facing slider in the map editor")] public readonly int EditorTurretFacingDisplayOrder = 4;