From 75e0667acba366b688b26b18498265f3e247a2d2 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sat, 14 Nov 2020 00:43:29 +1100 Subject: [PATCH] Make systems default to no paused comps (#2475) * Make systems default to no paused comps * Restore old paused But with a new name Co-authored-by: Metal Gear Sloth --- Content.Server/GameObjects/EntitySystems/BatterySystem.cs | 2 +- Content.Server/GameObjects/EntitySystems/MoverSystem.cs | 2 +- Content.Server/GameObjects/EntitySystems/PowerApcSystem.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Server/GameObjects/EntitySystems/BatterySystem.cs b/Content.Server/GameObjects/EntitySystems/BatterySystem.cs index 9a4aefbf80..438a58430f 100644 --- a/Content.Server/GameObjects/EntitySystems/BatterySystem.cs +++ b/Content.Server/GameObjects/EntitySystems/BatterySystem.cs @@ -9,7 +9,7 @@ namespace Content.Server.GameObjects.EntitySystems { public override void Update(float frameTime) { - foreach (var comp in ComponentManager.EntityQuery(false)) + foreach (var comp in ComponentManager.EntityQuery()) { comp.OnUpdate(frameTime); } diff --git a/Content.Server/GameObjects/EntitySystems/MoverSystem.cs b/Content.Server/GameObjects/EntitySystems/MoverSystem.cs index 6243f9794c..dc9e6f6974 100644 --- a/Content.Server/GameObjects/EntitySystems/MoverSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/MoverSystem.cs @@ -57,7 +57,7 @@ namespace Content.Server.GameObjects.EntitySystems public override void Update(float frameTime) { - foreach (var (moverComponent, collidableComponent) in EntityManager.ComponentManager.EntityQuery(false)) + foreach (var (moverComponent, collidableComponent) in EntityManager.ComponentManager.EntityQuery()) { var entity = moverComponent.Owner; UpdateKinematics(entity.Transform, moverComponent, collidableComponent); diff --git a/Content.Server/GameObjects/EntitySystems/PowerApcSystem.cs b/Content.Server/GameObjects/EntitySystems/PowerApcSystem.cs index e4cfab08f5..aef620e58f 100644 --- a/Content.Server/GameObjects/EntitySystems/PowerApcSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/PowerApcSystem.cs @@ -13,7 +13,7 @@ namespace Content.Server.GameObjects.EntitySystems { public override void Update(float frameTime) { - var uniqueApcNets = new HashSet(); //could be improved by maintaining set instead of getting collection every frame + var uniqueApcNets = new HashSet(); //could be improved by maintaining set instead of getting collection every frame foreach (var apc in ComponentManager.EntityQuery(false)) { uniqueApcNets.Add(apc.Net);