mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 10:58:20 +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:
@@ -349,10 +349,10 @@ void CheatManager::ProcessMovementHistory(const EQApplicationPacket *app)
|
||||
|
||||
void CheatManager::ProcessSpawnApperance(uint16 spawn_id, uint16 type, uint32 parameter)
|
||||
{
|
||||
if (type == AT_Anim && parameter == ANIM_SIT) {
|
||||
if (type == AppearanceType::Animation && parameter == Animation::Sitting) {
|
||||
m_time_since_last_memorization = Timer::GetCurrentTime();
|
||||
}
|
||||
else if (spawn_id == 0 && type == AT_AntiCheat) {
|
||||
else if (spawn_id == 0 && type == AppearanceType::AntiCheat) {
|
||||
m_time_since_last_action = parameter;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user