Remove messages that appear when no tile is loaded because it isn't present in the scenery
These get a little spammy when flying over areas without terrain and don't really serve much of a purpose.
This commit is contained in:
parent
b4009db5f6
commit
88f43a33a3
2 changed files with 16 additions and 14 deletions
|
@ -1344,20 +1344,20 @@ bool FGJSBsim::update_ground_cache(const FGLocation& cart, double dt)
|
|||
bool cache_ok = prepare_ground_cache_ft( t0, t0 + dt, cart_pos,
|
||||
groundCacheRadius );
|
||||
if (!cache_ok) {
|
||||
SG_LOG(SG_FLIGHT, SG_WARN,
|
||||
"FGInterface is being called without scenery below the aircraft!");
|
||||
//SG_LOG(SG_FLIGHT, SG_WARN,
|
||||
// "FGInterface is being called without scenery below the aircraft!");
|
||||
|
||||
SG_LOG(SG_FLIGHT, SG_WARN, "altitude = "
|
||||
<< fgic->GetAltitudeASLFtIC());
|
||||
//SG_LOG(SG_FLIGHT, SG_WARN, "altitude = "
|
||||
// << fgic->GetAltitudeASLFtIC());
|
||||
|
||||
SG_LOG(SG_FLIGHT, SG_WARN, "sea level radius = "
|
||||
<< get_Sea_level_radius());
|
||||
//SG_LOG(SG_FLIGHT, SG_WARN, "sea level radius = "
|
||||
// << get_Sea_level_radius());
|
||||
|
||||
SG_LOG(SG_FLIGHT, SG_WARN, "latitude = "
|
||||
<< fgic->GetLatitudeRadIC());
|
||||
//SG_LOG(SG_FLIGHT, SG_WARN, "latitude = "
|
||||
// << fgic->GetLatitudeRadIC());
|
||||
|
||||
SG_LOG(SG_FLIGHT, SG_WARN, "longitude = "
|
||||
<< fgic->GetLongitudeRadIC());
|
||||
//SG_LOG(SG_FLIGHT, SG_WARN, "longitude = "
|
||||
// << fgic->GetLongitudeRadIC());
|
||||
}
|
||||
|
||||
return cache_ok;
|
||||
|
|
|
@ -393,10 +393,12 @@ FGGroundCache::prepare_ground_cache(double startSimTime, double endSimTime,
|
|||
_altitude = alt;
|
||||
}
|
||||
|
||||
// Still not sucessful??
|
||||
if (!found_ground)
|
||||
SG_LOG(SG_FLIGHT, SG_WARN, "prepare_ground_cache(): trying to build "
|
||||
"cache without any scenery below the aircraft");
|
||||
// RJH: 2018-12-31: Remove this message as it happens too frequently when flying over areas of missing terrain
|
||||
// and realistically it doesn't really give much information to help identify or resolve a problem
|
||||
// which is evident when looking out of the window.
|
||||
//if (!found_ground)
|
||||
// SG_LOG(SG_FLIGHT, SG_WARN, "prepare_ground_cache(): trying to build "
|
||||
// "cache without any scenery below the aircraft");
|
||||
|
||||
#ifdef GROUNDCACHE_DEBUG
|
||||
t0 = SGTimeStamp::now() - t0;
|
||||
|
|
Loading…
Add table
Reference in a new issue