From 43a2b6fdac186108dcc92f54e6b5164bf02d739e Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Thu, 23 Mar 2017 21:11:46 +0000 Subject: [PATCH] Rotate through tips based on execution count. --- src/Viewer/splash.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Viewer/splash.cxx b/src/Viewer/splash.cxx index 8b363fc5f..bbc3ded09 100644 --- a/src/Viewer/splash.cxx +++ b/src/Viewer/splash.cxx @@ -521,11 +521,7 @@ void SplashScreen::updateText() _haveSetStartupTip = true; FGLocale* locale = globals->get_locale(); const int tipCount = locale->getLocalizedStringCount("tip", "tips"); - - time_t now; - ::time(&now); - struct tm* currentTime = ::localtime(&now); - int tipIndex = currentTime->tm_yday % tipCount; + int tipIndex = globals->get_props()->getIntValue("/sim/session",0) % tipCount; std::string tipText = locale->getLocalizedStringWithIndex("tip", "tips", tipIndex);