aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-11 14:36:44 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-11 14:36:44 +0100
commit2bcd6ece912ab0a140f9d925718e8787879d1ed7 (patch)
treeea13906ba7afcd519579639b3b2d620628151fe1 /src/crepe/system
parente6a5bb579d0969245f34119ef2489f47039c523e (diff)
adjusted aspect ratio
Diffstat (limited to 'src/crepe/system')
-rw-r--r--src/crepe/system/AISystem.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crepe/system/AISystem.cpp b/src/crepe/system/AISystem.cpp
index e2e36a5..7f04432 100644
--- a/src/crepe/system/AISystem.cpp
+++ b/src/crepe/system/AISystem.cpp
@@ -12,10 +12,11 @@ using namespace crepe;
void AISystem::update() {
const Mediator & mediator = this->mediator;
ComponentManager & mgr = mediator.component_manager;
+ LoopTimer & timer = mediator.timer;
RefVector<AI> ai_components = mgr.get_components_by_type<AI>();
//TODO: Use fixed loop dt (this is not available at master at the moment)
- double dt = LoopTimer::get_instance().get_delta_time();
+ double dt = timer.get_delta_time();
// Loop through all AI components
for (AI & ai : ai_components) {