From 78c5ccc3af4c53eed60040a0a9fb165b4be222f4 Mon Sep 17 00:00:00 2001 From: saint11 Date: Thu, 19 Dec 2024 20:59:39 -0800 Subject: [PATCH] minor perf improvement on agent cleanup --- src/Murder/Systems/Agents/AgentCleanupSystem.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Murder/Systems/Agents/AgentCleanupSystem.cs b/src/Murder/Systems/Agents/AgentCleanupSystem.cs index ff251da8..26f891b6 100644 --- a/src/Murder/Systems/Agents/AgentCleanupSystem.cs +++ b/src/Murder/Systems/Agents/AgentCleanupSystem.cs @@ -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))