* Move weather management to new WeatherMgr (yes, I care that much about the weather - I really do).

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2010-08-08 05:06:13 +02:00
parent 18dce8897f
commit e03c873bcf
8 changed files with 238 additions and 152 deletions
+3 -2
View File
@@ -57,6 +57,7 @@
#include "ConditionMgr.h"
#include "DisableMgr.h"
#include "Transport.h"
#include "WeatherMgr.h"
//reload commands
bool ChatHandler::HandleReloadAllCommand(const char*)
@@ -4656,10 +4657,10 @@ bool ChatHandler::HandleChangeWeather(const char *args)
Player *player = m_session->GetPlayer();
uint32 zoneid = player->GetZoneId();
Weather* wth = sWorld.FindWeather(zoneid);
Weather* wth = sWeatherMgr.FindWeather(zoneid);
if (!wth)
wth = sWorld.AddWeather(zoneid);
wth = sWeatherMgr.AddWeather(zoneid);
if (!wth)
{
SendSysMessage(LANG_NO_WEATHER);