From 63491678e2c15d625f4e19a3a360320ca096e0d4 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sat, 14 Sep 2024 09:46:52 +0200 Subject: Core/Units: updated the action button macros for Cataclysm --- src/server/game/Entities/Unit/CharmInfo.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server') diff --git a/src/server/game/Entities/Unit/CharmInfo.h b/src/server/game/Entities/Unit/CharmInfo.h index deb371b3388..e21cf4f0f7d 100644 --- a/src/server/game/Entities/Unit/CharmInfo.h +++ b/src/server/game/Entities/Unit/CharmInfo.h @@ -30,9 +30,9 @@ constexpr uint8 MAX_SPELL_VEHICLE = 6; constexpr uint8 MAX_SPELL_POSSESS = 8; constexpr uint8 MAX_SPELL_CONTROL_BAR = 10; -#define UNIT_ACTION_BUTTON_ACTION(X) (uint32(X) & 0x007FFFFF) -#define UNIT_ACTION_BUTTON_TYPE(X) ((uint32(X) & 0xFF000000) >> 23) -#define MAKE_UNIT_ACTION_BUTTON(A, T) (uint32(A) | (uint32(T) << 23)) +#define UNIT_ACTION_BUTTON_ACTION(X) (uint32(X) & 0x00FFFFFF) +#define UNIT_ACTION_BUTTON_TYPE(X) ((uint32(X) & 0xFF000000) >> 24) +#define MAKE_UNIT_ACTION_BUTTON(A, T) (uint32(A) | (uint32(T) << 24)) struct UnitActionBarEntry { -- cgit v1.2.3