PacketIO: Fix unit actionbar

(cherry picked from commit 6331b44e0f)
This commit is contained in:
funjoker
2024-02-14 21:37:45 +01:00
committed by Ovahlord
parent e5f8dd0d27
commit 7a486244b0

View File

@@ -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) & 0x00FFFFFF)
#define UNIT_ACTION_BUTTON_TYPE(X) ((uint32(X) & 0xFF000000) >> 24)
#define MAKE_UNIT_ACTION_BUTTON(A, T) (uint32(A) | (uint32(T) << 24))
#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))
struct UnitActionBarEntry
{