Core: Fix some warnings

--HG--
branch : trunk
This commit is contained in:
Spp
2010-08-23 07:51:19 +02:00
parent ccc2a83510
commit 16d95d3115
30 changed files with 121 additions and 85 deletions
@@ -781,7 +781,7 @@ void BattlegroundMgr::InitAutomaticArenaPointDistribution()
if (!sWorld.getConfig(CONFIG_ARENA_AUTO_DISTRIBUTE_POINTS))
return;
uint64 wstime = sWorld.getWorldState(WS_ARENA_DISTRIBUTION_TIME);
time_t wstime = time_t(sWorld.getWorldState(WS_ARENA_DISTRIBUTION_TIME));
time_t curtime = time(NULL);
sLog.outDebug("Initializing Automatic Arena Point Distribution");
if (wstime < curtime)
@@ -790,7 +790,7 @@ void BattlegroundMgr::InitAutomaticArenaPointDistribution()
sLog.outDebug("Battleground: Next arena point distribution time in the past, reseting it now.");
}
else
m_NextAutoDistributionTime = time_t(wstime);
m_NextAutoDistributionTime = wstime;
sLog.outDebug("Automatic Arena Point Distribution initialized.");
}