mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +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:
+2
-2
@@ -3538,12 +3538,12 @@ void QuestManager::FlyMode(GravityBehavior flymode)
|
||||
QuestManagerCurrentQuestVars();
|
||||
if(initiator)
|
||||
{
|
||||
initiator->SendAppearancePacket(AT_Levitate, static_cast<int>(flymode));
|
||||
initiator->SendAppearancePacket(AppearanceType::FlyMode, static_cast<int>(flymode));
|
||||
initiator->SetFlyMode(flymode);
|
||||
}
|
||||
else if(owner)
|
||||
{
|
||||
owner->SendAppearancePacket(AT_Levitate, static_cast<int>(flymode));
|
||||
owner->SendAppearancePacket(AppearanceType::FlyMode, static_cast<int>(flymode));
|
||||
owner->SetFlyMode(flymode);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user