1
0
Fork 0

warn about badly set fg-root

This commit is contained in:
mfranz 2008-10-02 08:33:49 +00:00
parent b6a354980d
commit a29ee7c257

View file

@ -173,6 +173,8 @@ void FGGlobals::set_fg_root (const string &root) {
tmp.append( "version" );
if ( ulFileExists( tmp.c_str() ) ) {
fg_root += "/data";
SG_LOG(SG_GENERAL, SG_WARN, "Warning: changing bad FG_ROOT/--fg-root to '"
<< fg_root << '\'');
}
// remove /sim/fg-root before writing to prevent hijacking