mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 02:31:03 +00:00
Revert "Added constants and cleaned up #weather command"
This reverts commit 2ec85304b7.
This commit is contained in:
@@ -513,21 +513,3 @@ std::string EQ::constants::GetObjectTypeName(int object_type)
|
||||
|
||||
return std::string();
|
||||
}
|
||||
|
||||
const std::map<uint8, std::string>& EQ::constants::GetWeatherTypeMap()
|
||||
{
|
||||
static const std::map<uint8, std::string> weather_type_map ={
|
||||
{ WeatherTypes::None, "None" },
|
||||
{ WeatherTypes::Raining, "Raining" },
|
||||
{ WeatherTypes::Snowing, "Snowing" }
|
||||
};
|
||||
}
|
||||
|
||||
std::string EQ::constants::GetWeatherTypeName(uint8 weather_type)
|
||||
{
|
||||
if (EQ::ValueWithin(weather_type, WeatherTypes::None, WeatherTypes::Snowing)) {
|
||||
return EQ::constants::GetWeatherTypeMap().find(weather_type)->second;
|
||||
}
|
||||
|
||||
return std::string();
|
||||
}
|
||||
Reference in New Issue
Block a user