Avoid useless warnings during FG startup.
Do not warn about missing scenery manager, unless it is really needed. Also raise warn level for multiple init calls.
This commit is contained in:
parent
826107f132
commit
444720f62d
1 changed files with 4 additions and 1 deletions
|
@ -164,6 +164,9 @@ FGAIBase::~FGAIBase() {
|
|||
void
|
||||
FGAIBase::removeModel()
|
||||
{
|
||||
if (!_model.valid())
|
||||
return;
|
||||
|
||||
FGScenery* pSceneryManager = globals->get_scenery();
|
||||
if (pSceneryManager)
|
||||
{
|
||||
|
@ -292,7 +295,7 @@ bool FGAIBase::init(bool search_in_AI_path)
|
|||
{
|
||||
if (_model.valid())
|
||||
{
|
||||
SG_LOG(SG_AI, SG_WARN, "AIBase: Cannot initialize a model multiple times! " << model_path);
|
||||
SG_LOG(SG_AI, SG_ALERT, "AIBase: Cannot initialize a model multiple times! " << model_path);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue