Skip to content

Commit

Permalink
Change default preview facing to 96
Browse files Browse the repository at this point in the history
92 is not a multiple of 8, and all sprite actors
in the official mods have at most 32 facings.
  • Loading branch information
reaperrr committed Aug 27, 2019
1 parent 2b4ad71 commit 07de3ba
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/EditorBrushes/EditorActorBrush.cs
Expand Up @@ -30,7 +30,7 @@ public sealed class EditorActorBrush : IEditorBrush
readonly PlayerReference owner;
readonly CVec[] footprint;

int facing = 92;
int facing = 96;

public EditorActorBrush(EditorViewportControllerWidget editorWidget, ActorInfo actor, PlayerReference owner, WorldRenderer wr)
{
Expand Down
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Traits/Air/Aircraft.cs
Expand Up @@ -130,7 +130,7 @@ public class AircraftInfo : ITraitInfo, IPositionableInfo, IFacingInfo, IMoveInf
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;
Expand Down
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Traits/Husk.cs
Expand Up @@ -23,7 +23,7 @@ public class HuskInfo : ITraitInfo, IPositionableInfo, IFacingInfo, IActorPrevie
public readonly HashSet<string> AllowedTerrain = new HashSet<string>();

[Desc("Facing to use for actor previews (map editor, color picker, etc)")]
public readonly int PreviewFacing = 92;
public readonly int PreviewFacing = 96;

IEnumerable<object> IActorPreviewInitInfo.ActorPreviewInits(ActorInfo ai, ActorPreviewType type)
{
Expand Down
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Traits/Mobile.cs
Expand Up @@ -44,7 +44,7 @@ public class MobileInfo : PausableConditionalTraitInfo, IMoveInfo, IPositionable
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;
Expand Down
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Traits/Turreted.cs
Expand Up @@ -31,7 +31,7 @@ public class TurretedInfo : PausableConditionalTraitInfo, Requires<BodyOrientati
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;
Expand Down

0 comments on commit 07de3ba

Please sign in to comment.