Skip to content

Commit

Permalink
minor perf improvement on agent cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
saint11 committed Dec 20, 2024
1 parent a3a2c80 commit 78c5ccc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Murder/Systems/Agents/AgentCleanupSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public void FixedUpdate(Context context)
{
// Set the friction if there is no impulse
e.SetFriction(agent.Friction);
continue;
}

if (impulse is not null && !impulse.Value.Flags.HasFlag(AgentImpulseFlags.DoNotClear))
Expand Down

0 comments on commit 78c5ccc

Please # to comment.