]> git.mxchange.org Git - flightgear.git/commitdiff
data hack: escalate some more; this disgusting hack must die *soon*!
authormfranz <mfranz>
Fri, 30 Jan 2009 17:55:14 +0000 (17:55 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 1 Feb 2009 22:44:10 +0000 (23:44 +0100)
src/Main/globals.cxx

index c80053fe5554d1ce5cebdfb86a5d0956f8880e80..0e5433006f6e162982be0fa24e146430dfb94c0f 100644 (file)
@@ -168,9 +168,11 @@ void FGGlobals::set_fg_root (const string &root) {
     tmp.append( "data" );
     tmp.append( "version" );
     if ( ulFileExists( tmp.c_str() ) ) {
+        fgGetNode("BAD_FG_ROOT", true)->setStringValue(fg_root);
         fg_root += "/data";
-        SG_LOG(SG_GENERAL, SG_ALERT, "Warning: changing bad FG_ROOT/--fg-root to '"
-                << fg_root << '\'');
+        fgGetNode("GOOD_FG_ROOT", true)->setStringValue(fg_root);
+        SG_LOG(SG_GENERAL, SG_ALERT, "***\n***\n*** Warning: changing bad FG_ROOT/--fg-root to '"
+                << fg_root << "'\n***\n***");
     }
 
     // remove /sim/fg-root before writing to prevent hijacking