Added MANGOS define

Since Mangos Two also has the new weather system, add definition. Entire block should be refactored as soon as possible.
This commit is contained in:
Foereaper
2015-02-14 10:35:46 +01:00
parent 0701980561
commit cd217f9490

View File

@@ -259,7 +259,7 @@ namespace LuaMap
uint32 weatherType = Eluna::CHECKVAL<uint32>(L, 3); uint32 weatherType = Eluna::CHECKVAL<uint32>(L, 3);
float grade = Eluna::CHECKVAL<float>(L, 4); float grade = Eluna::CHECKVAL<float>(L, 4);
#if (defined(CMANGOS) && defined(WOTLK)) #if ((defined(MANGOS) || defined(CMANGOS)) && defined(WOTLK))
if (Weather::IsValidWeatherType(weatherType)) if (Weather::IsValidWeatherType(weatherType))
map->SetWeather(zoneId, (WeatherType)weatherType, grade, false); map->SetWeather(zoneId, (WeatherType)weatherType, grade, false);
#else #else