From 8fab5bf1b752f129ac96bfa26882d013822d4b26 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Thu, 17 Jun 2021 22:41:24 +0200 Subject: [PATCH] Removing the timer on non-game scenes --- sources/System/Renderer/CameraSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/System/Renderer/CameraSystem.cpp b/sources/System/Renderer/CameraSystem.cpp index 1a51ad90..0edd0149 100644 --- a/sources/System/Renderer/CameraSystem.cpp +++ b/sources/System/Renderer/CameraSystem.cpp @@ -52,7 +52,7 @@ namespace BBM void CameraSystem::onUpdate(WAL::ViewEntity &entity, std::chrono::nanoseconds dtime) { - if (!introAnimation(entity)) + if (Runner::gameState.currentScene != GameState::GameScene || !introAnimation(entity)) return; auto &pos = entity.get(); auto &cam = entity.get();