mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 15:38:27 +00:00
Revert "Added constants and cleaned up #weather command"
This reverts commit 2ec85304b7.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user