Revert "Added constants and cleaned up #weather command"

This reverts commit 2ec85304b7.
This commit is contained in:
Kinglykrab
2022-10-13 17:52:01 -04:00
parent 2ec85304b7
commit 76f4e411b6
9 changed files with 143 additions and 287 deletions
+3 -6
View File
@@ -1746,14 +1746,11 @@ void Client::Handle_Connect_OP_ZoneEntry(const EQApplicationPacket *app)
outapp = new EQApplicationPacket(OP_Weather, 12);
Weather_Struct *ws = (Weather_Struct *)outapp->pBuffer;
ws->val1 = 0x000000FF;
if (zone->zone_weather == EQ::constants::WeatherTypes::Raining) {
ws->type = 0x31;
} else if (zone->zone_weather == EQ::constants::WeatherTypes::Snowing) {
if (zone->zone_weather == 1) { ws->type = 0x31; } // Rain
if (zone->zone_weather == 2) {
outapp->pBuffer[8] = 0x01;
ws->type = EQ::constants::WeatherTypes::Snowing;
ws->type = 0x02;
}
outapp->priority = 6;
QueuePacket(outapp);
safe_delete(outapp);