mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-29 17:02:11 +00:00
Removing the timer on non-game scenes
This commit is contained in:
@@ -52,7 +52,7 @@ namespace BBM
|
||||
void CameraSystem::onUpdate(WAL::ViewEntity<CameraComponent, PositionComponent> &entity,
|
||||
std::chrono::nanoseconds dtime)
|
||||
{
|
||||
if (!introAnimation(entity))
|
||||
if (Runner::gameState.currentScene != GameState::GameScene || !introAnimation(entity))
|
||||
return;
|
||||
auto &pos = entity.get<PositionComponent>();
|
||||
auto &cam = entity.get<CameraComponent>();
|
||||
|
||||
Reference in New Issue
Block a user