Change YASim solution failure message to display as an alert; but not to call exit().
It is the call to exit that causes FG to lock up and become a zombie. Alternative is to throw an exception, i.e.: throw sg_error(std::string("YASim SOLUTION FAILURE:") + a->getFailureMsg(););
This commit is contained in:
parent
7b7e50741f
commit
10caef48b1
1 changed files with 2 additions and 3 deletions
|
@ -77,9 +77,8 @@ void YASim::report()
|
||||||
SG_LOG(SG_FLIGHT, SG_INFO, buf);
|
SG_LOG(SG_FLIGHT, SG_INFO, buf);
|
||||||
|
|
||||||
if(a->getFailureMsg()) {
|
if(a->getFailureMsg()) {
|
||||||
SG_LOG(SG_FLIGHT, SG_ALERT, "YASim SOLUTION FAILURE:");
|
SG_LOG(SG_FLIGHT, SG_POPUP, std::string("YASim flight dynamics problem:") + a->getFailureMsg()+"\nThe aircraft may not fly correctly");
|
||||||
SG_LOG(SG_FLIGHT, SG_ALERT, a->getFailureMsg());
|
//throw sg_error(std::string("YASim SOLUTION FAILURE:") + a->getFailureMsg(););
|
||||||
exit(1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue