From 71dad93199f152d09335df5938da0060ee2d0803 Mon Sep 17 00:00:00 2001 From: Foereaper Date: Wed, 25 Mar 2015 00:27:20 +0100 Subject: [PATCH] Mangos weather structure updated --- MapMethods.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/MapMethods.h b/MapMethods.h index 8a55c63..b1629a2 100644 --- a/MapMethods.h +++ b/MapMethods.h @@ -265,15 +265,9 @@ namespace LuaMap weather = WeatherMgr::AddWeather(zoneId); if (weather) weather->SetWeather((WeatherType)weatherType, grade); -#elif defined(CMANGOS) || defined(WOTLK) +#else if (Weather::IsValidWeatherType(weatherType)) map->SetWeather(zoneId, (WeatherType)weatherType, grade, false); -#else - Weather* weather = eWorld->FindWeather(zoneId); - if (!weather) - weather = eWorld->AddWeather(zoneId); - if (weather) - weather->SetWeather((WeatherType)weatherType, grade); #endif return 0; }