diff --git a/source/tools/atlas/GameInterface/Handlers/CameraCtrlHandlers.cpp b/source/tools/atlas/GameInterface/Handlers/CameraCtrlHandlers.cpp index 31293a4d76..0d28bd4b96 100644 --- a/source/tools/atlas/GameInterface/Handlers/CameraCtrlHandlers.cpp +++ b/source/tools/atlas/GameInterface/Handlers/CameraCtrlHandlers.cpp @@ -37,6 +37,11 @@ #include "tools/atlas/GameInterface/SharedTypes.h" #include "tools/atlas/GameInterface/View.h" +namespace +{ +bool birdEyeView{false}; +} // namespace + namespace AtlasMessage { MESSAGEHANDLER(CameraReset) @@ -60,6 +65,8 @@ MESSAGEHANDLER(CameraReset) } g_Game->GetView()->ResetCameraTarget(target); + + birdEyeView = false; } MESSAGEHANDLER(ScrollConstant) @@ -263,7 +270,6 @@ MESSAGEHANDLER(ToggleBirdsEyeView) if (!g_Game || g_Game->GetView()->GetCinema()->IsPlaying()) return; - static bool birdEyeView{false}; static float declination{0.f}; CCamera& camera = AtlasView::GetView_Game()->GetCamera();