From: Holger Schemel Date: Mon, 12 Jun 2023 17:53:52 +0000 (+0200) Subject: changed global animation events to use more practical bit range X-Git-Tag: 4.3.7.0~46 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=098f7183b1fa2bc65346a699c4513892ac20df16;p=rocksndiamonds.git changed global animation events to use more practical bit range --- diff --git a/src/libgame/system.h b/src/libgame/system.h index bec94cf5..44ac3e34 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -382,19 +382,20 @@ // values for special global animation events #define ANIM_EVENT_UNDEFINED -1 #define ANIM_EVENT_NONE 0 -#define ANIM_EVENT_SELF (1 << 16) -#define ANIM_EVENT_ANY (1 << 17) -#define ANIM_EVENT_CLICK (1 << 18) -#define ANIM_EVENT_INIT (1 << 19) -#define ANIM_EVENT_START (1 << 20) -#define ANIM_EVENT_END (1 << 21) -#define ANIM_EVENT_POST (1 << 22) -#define ANIM_EVENT_UNCLICK_ANY (1 << 23) - -// anim number: bits 0-7 -// part number: bits 8-15 -#define ANIM_EVENT_ANIM_BIT 0 -#define ANIM_EVENT_PART_BIT 8 +#define ANIM_EVENT_SELF (1 << 0) +#define ANIM_EVENT_ANY (1 << 1) +#define ANIM_EVENT_CLICK (1 << 2) +#define ANIM_EVENT_INIT (1 << 3) +#define ANIM_EVENT_START (1 << 4) +#define ANIM_EVENT_END (1 << 5) +#define ANIM_EVENT_POST (1 << 6) +#define ANIM_EVENT_UNCLICK_ANY (1 << 7) + +// event mask: bits 0-7 +// anim number: bits 8-15 +// part number: bits 16-23 +#define ANIM_EVENT_ANIM_BIT 8 +#define ANIM_EVENT_PART_BIT 16 #define ANIM_EVENT_ANIM_MASK (0xff << ANIM_EVENT_ANIM_BIT) #define ANIM_EVENT_PART_MASK (0xff << ANIM_EVENT_PART_BIT)