Skip to content

Commit

Permalink
Fix horizontal flip.
Browse files Browse the repository at this point in the history
  • Loading branch information
isadorasophia committed Nov 22, 2024
1 parent 0139551 commit 65795a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Murder/Systems/Agents/AgentSpriteSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
using Murder.Messages;
using Murder.Services;
using Murder.Utilities;
using System.Diagnostics;
using System.Numerics;

namespace Murder.Systems
Expand Down Expand Up @@ -93,7 +94,10 @@ public void Draw(RenderContext render, Context context)
(string suffix, bool horizontalFlip) = DirectionHelper.GetSuffixFromAngle(e, prefix, facing.Angle);

if (overload is not null && overload.Value.IgnoreFacing)
{
suffix = string.Empty;
horizontalFlip = false;
}

if (string.IsNullOrEmpty(suffix))
prefix = prefix.Trim('_');
Expand Down

0 comments on commit 65795a3

Please sign in to comment.