aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Weather/WeatherMgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/Weather/WeatherMgr.cpp')
-rwxr-xr-xsrc/server/game/Weather/WeatherMgr.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Weather/WeatherMgr.cpp b/src/server/game/Weather/WeatherMgr.cpp
index f548a13b87b..18fe7176947 100755
--- a/src/server/game/Weather/WeatherMgr.cpp
+++ b/src/server/game/Weather/WeatherMgr.cpp
@@ -76,6 +76,8 @@ Weather* WeatherMgr::AddWeather(uint32 zone_id)
void WeatherMgr::LoadWeatherData()
{
+ uint32 oldMSTime = getMSTime();
+
uint32 count = 0;
// 0 1 2 3 4 5 6 7 8 9 10 11 12 13
@@ -84,11 +86,9 @@ void WeatherMgr::LoadWeatherData()
if (!result)
{
barGoLink bar(1);
-
bar.step();
-
- sLog.outString();
sLog.outErrorDb(">> Loaded 0 weather definitions. DB table `game_weather` is empty.");
+ sLog.outString();
return;
}
@@ -134,8 +134,8 @@ void WeatherMgr::LoadWeatherData()
}
while (result->NextRow());
+ sLog.outString(">> Loaded %u weather definitions in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
sLog.outString();
- sLog.outString(">> Loaded %u weather definitions", count);
}
void WeatherMgr::Update(uint32 diff)