Replaced all ACE_OS::localtime_r calls

This commit is contained in:
leak
2014-06-22 15:42:46 +02:00
parent ccf3374e49
commit 7dd6f0f1d8
10 changed files with 27 additions and 24 deletions

View File

@@ -94,7 +94,7 @@ bool Weather::ReGenerate()
// season source http://aa.usno.navy.mil/data/docs/EarthSeasons.html
time_t gtime = sWorld->GetGameTime();
struct tm ltime;
ACE_OS::localtime_r(&gtime, &ltime);
localtime_r(&gtime, &ltime);
uint32 season = ((ltime.tm_yday - 78 + 365)/91)%4;
static char const* seasonName[WEATHER_SEASONS] = { "spring", "summer", "fall", "winter" };