diff --git a/include/entity.h b/include/entity.h index 14b963f3..ef1f6303 100644 --- a/include/entity.h +++ b/include/entity.h @@ -25,20 +25,6 @@ typedef struct { u8 unknown2[4]; } BoundingBox; -union SplitWord { - s32 WORD; - struct { - s16 LO, HI; - } HALF; -}; - -union SplitHWord { - u16 HWORD; - struct { - u8 LO, HI; - } PACKED HALF; -} PACKED; - typedef struct Entity { /*0x00*/ u32* field_0x0; /*0x04*/ u32* field_0x4; diff --git a/include/global.h b/include/global.h index d312b7b2..6738b6b8 100644 --- a/include/global.h +++ b/include/global.h @@ -59,4 +59,18 @@ struct UCoords16 u16 y; }; +union SplitWord { + s32 WORD; + struct { + s16 LO, HI; + } HALF; +}; + +union SplitHWord { + u16 HWORD; + struct { + u8 LO, HI; + } PACKED HALF; +} PACKED; + #endif // GUARD_GLOBAL_H