From 32d934e87d2af2a3778496a170e84208e6369fea Mon Sep 17 00:00:00 2001 From: zhongjin Date: Sat, 3 Dec 2022 20:12:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/Scenery/tilemgr.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Scenery/tilemgr.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Scenery/tilemgr.cxx b/src/Scenery/tilemgr.cxx index 0b6bb7d..a6f0005 100644 --- a/src/Scenery/tilemgr.cxx +++ b/src/Scenery/tilemgr.cxx @@ -228,7 +228,10 @@ void FGTileMgr::reinit() } //zhongjin 自动下载卫星图像 - if ( fgGetNode("/sim/rendering/photoscenery/enabled",false)) { + if ( fgGetNode("/sim/rendering/photoscenery/enabled")) { + + SG_LOG( SG_TERRAIN, SG_INFO, "下载卫星图像"); + scenerySuffixes.push_back("Orthophotos"); } @@ -238,6 +241,7 @@ void FGTileMgr::reinit() } _options->setSceneryPathSuffixes(scenerySuffixes); + if (state != Start) { // protect against multiple scenery reloads and properly reset flags,