1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-06-08 01:21:52 +00:00

Update z_en_sw.h

use PARAMS_GET_S in ENSW_GET_TYPE macro
This commit is contained in:
blackgamma7 2025-05-28 00:26:22 -04:00
parent 1a979d1e6d
commit e6b79a0470

View file

@ -49,9 +49,9 @@ typedef struct EnSw {
} EnSw; // size = 0x04D8
// Skullwalltula type stored in last 3 bits of params.
#define ENSW_GET_TYPE(thisx) ((thisx->params & 0xE000) >> 0xD)
#define ENSW_GET_TYPE(thisx) PARAMS_GET_S(thisx->params,13,3)
// version of the macro used for the whole entity struct.
#define ENSW_GET_TYPE_EN(this) ((this->actor.params & 0xE000) >> 0xD)
#define ENSW_GET_TYPE_EN(this) PARAMS_GET_S(this->actor.params,13,3)
typedef enum {
SW_TYPE_NORMAL, // normal Skull(wall)tula