mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
Core: Removed more operator workarounds for ACE_Singleton (missed previously because of inconsistent naming)
--HG-- branch : trunk
This commit is contained in:
@@ -84,8 +84,8 @@ void WeatherMgr::LoadWeatherData()
|
||||
|
||||
if (!result)
|
||||
{
|
||||
sLog.outErrorDb(">> Loaded 0 weather definitions. DB table `game_weather` is empty.");
|
||||
sLog.outString();
|
||||
sLog->outErrorDb(">> Loaded 0 weather definitions. DB table `game_weather` is empty.");
|
||||
sLog->outString();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -107,19 +107,19 @@ void WeatherMgr::LoadWeatherData()
|
||||
if (wzc.data[season].rainChance > 100)
|
||||
{
|
||||
wzc.data[season].rainChance = 25;
|
||||
sLog.outErrorDb("Weather for zone %u season %u has wrong rain chance > 100%%",zone_id,season);
|
||||
sLog->outErrorDb("Weather for zone %u season %u has wrong rain chance > 100%%",zone_id,season);
|
||||
}
|
||||
|
||||
if (wzc.data[season].snowChance > 100)
|
||||
{
|
||||
wzc.data[season].snowChance = 25;
|
||||
sLog.outErrorDb("Weather for zone %u season %u has wrong snow chance > 100%%",zone_id,season);
|
||||
sLog->outErrorDb("Weather for zone %u season %u has wrong snow chance > 100%%",zone_id,season);
|
||||
}
|
||||
|
||||
if (wzc.data[season].stormChance > 100)
|
||||
{
|
||||
wzc.data[season].stormChance = 25;
|
||||
sLog.outErrorDb("Weather for zone %u season %u has wrong storm chance > 100%%",zone_id,season);
|
||||
sLog->outErrorDb("Weather for zone %u season %u has wrong storm chance > 100%%",zone_id,season);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,8 +129,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 in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
|
||||
sLog->outString();
|
||||
}
|
||||
|
||||
void WeatherMgr::Update(uint32 diff)
|
||||
|
||||
Reference in New Issue
Block a user