mirror of
https://github.com/zeldaret/oot.git
synced 2025-06-08 17:41:56 +00:00
Update z_en_sw.h
use PARAMS_GET_S in ENSW_GET_TYPE macro
This commit is contained in:
parent
1a979d1e6d
commit
e6b79a0470
1 changed files with 2 additions and 2 deletions
|
@ -49,9 +49,9 @@ typedef struct EnSw {
|
||||||
} EnSw; // size = 0x04D8
|
} EnSw; // size = 0x04D8
|
||||||
|
|
||||||
// Skullwalltula type stored in last 3 bits of params.
|
// 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.
|
// 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 {
|
typedef enum {
|
||||||
SW_TYPE_NORMAL, // normal Skull(wall)tula
|
SW_TYPE_NORMAL, // normal Skull(wall)tula
|
||||||
|
|
Loading…
Add table
Reference in a new issue