1
0
Fork 0

Merge branch 'next' of ssh://git.code.sf.net/p/flightgear/flightgear into next

This commit is contained in:
Erik Hofman 2017-03-24 13:37:39 +01:00
commit 6fc61984df

View file

@ -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);