]> git.mxchange.org Git - flightgear.git/commitdiff
Fix download rate on splash screen.
authorJames Turner <zakalawe@mac.com>
Mon, 21 Oct 2013 22:04:10 +0000 (23:04 +0100)
committerJames Turner <zakalawe@mac.com>
Mon, 21 Oct 2013 22:04:23 +0000 (23:04 +0100)
src/Viewer/splash.cxx

index 8b881d4385613f9f41cbc2f66e5625b7a7f29610..5452aac641f11ff8969b04c6ab3511b0f8296730 100644 (file)
@@ -403,10 +403,6 @@ void fgSplashProgress( const char *identifier ) {
                                                        "sys", "<incomplete language resource>");
   }
     
-    if (!strcmp(fgGetString("/sim/startup/splash-progress-text"), text)) {
-        return;
-    }
-    
     if (!strcmp(identifier,"downloading-scenery")) {
         std::ostringstream oss;
         unsigned int kbytesPerSec = fgGetInt("/sim/terrasync/transfer-rate-bytes-sec") / 1024;
@@ -415,9 +411,13 @@ void fgSplashProgress( const char *identifier ) {
             oss << " - " << kbytesPerSec << " KBytes/sec";
         }
         fgSetString("/sim/startup/splash-progress-text", oss.str());
-    } else {
-        SG_LOG( SG_VIEW, SG_INFO, "Splash screen progress " << identifier );
-        fgSetString("/sim/startup/splash-progress-text", text);
+        return;
     }
-  
+    
+    if (!strcmp(fgGetString("/sim/startup/splash-progress-text"), text)) {
+        return;
+    }
+    
+    SG_LOG( SG_VIEW, SG_INFO, "Splash screen progress " << identifier );
+    fgSetString("/sim/startup/splash-progress-text", text);
 }