From 975339d07aeb193564221adff31b55a913d92a1e Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 23 Apr 2023 12:54:14 +0200 Subject: Separated Turret from AI, shuffled their units --- sim/src/FloatingMovement.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sim/src/FloatingMovement.cpp') diff --git a/sim/src/FloatingMovement.cpp b/sim/src/FloatingMovement.cpp index 39ec17c..4aebb9b 100644 --- a/sim/src/FloatingMovement.cpp +++ b/sim/src/FloatingMovement.cpp @@ -1,5 +1,6 @@ #include +#include #include #include @@ -13,7 +14,7 @@ namespace sim void FloatingMovement::update(State& ctx) { - auto view = ctx.registry.view(); + auto view = ctx.registry.view(); for (auto&& [entity, transform, movement, ai] : view.each()) { const auto offset = ai.destination - transform.position; const auto at_destination = offset.magnitude() > movement.destination_boundary; -- cgit v1.1