1
0
Fork 0

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:
ThorstenB 2011-12-09 17:19:45 +01:00
parent 826107f132
commit 444720f62d

View file

@ -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;
}