mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Commands] Cleanup #appearance Command (#3827)
* [Commands] Cleanup #appearance Command # Notes - Cleanup messages and logic. - Cleanup appearance type constants to use a namespace with constexpr instead. - Cleanup animation constants to use a namespace with constexpr instead. * Update emu_constants.cpp * Cleanup
This commit is contained in:
+3
-3
@@ -1411,7 +1411,7 @@ void EntityList::SendZonePVPUpdates(Client *to)
|
||||
while (it != client_list.end()) {
|
||||
Client *c = it->second;
|
||||
if(c->GetPVP())
|
||||
c->SendAppearancePacket(AT_PVP, c->GetPVP(), true, false, to);
|
||||
c->SendAppearancePacket(AppearanceType::PVP, c->GetPVP(), true, false, to);
|
||||
++it;
|
||||
}
|
||||
}
|
||||
@@ -4704,10 +4704,10 @@ void EntityList::SendZoneAppearance(Client *c)
|
||||
continue;
|
||||
}
|
||||
if (cur->GetAppearance() != eaStanding) {
|
||||
cur->SendAppearancePacket(AT_Anim, cur->GetAppearanceValue(cur->GetAppearance()), false, true, c);
|
||||
cur->SendAppearancePacket(AppearanceType::Animation, cur->GetAppearanceValue(cur->GetAppearance()), false, true, c);
|
||||
}
|
||||
if (cur->GetSize() != cur->GetBaseSize()) {
|
||||
cur->SendAppearancePacket(AT_Size, (uint32) cur->GetSize(), false, true, c);
|
||||
cur->SendAppearancePacket(AppearanceType::Size, (uint32) cur->GetSize(), false, true, c);
|
||||
}
|
||||
}
|
||||
++it;
|
||||
|
||||
Reference in New Issue
Block a user