diff options
| author | lepelog <25211966+lepelog@users.noreply.github.com> | 2025-12-04 23:26:13 +0100 |
|---|---|---|
| committer | lepelog <25211966+lepelog@users.noreply.github.com> | 2025-12-04 23:26:13 +0100 |
| commit | f0889aadb67d0b7295759e00f571ea221fffe204 (patch) | |
| tree | 5dd55b5fadc5a00dbacd63cd9f0f55b551f78b9a /include/d | |
| parent | 30b1ef36591e4bc1f8ad2bdf0e4ee989b64ca8df (diff) | |
properly use subtype enum
Diffstat (limited to 'include/d')
| -rw-r--r-- | include/d/t/d_t_insect.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/d/t/d_t_insect.h b/include/d/t/d_t_insect.h index 0e591e8e..874d5099 100644 --- a/include/d/t/d_t_insect.h +++ b/include/d/t/d_t_insect.h @@ -61,16 +61,16 @@ private: /* 0x260 */ mVec3_c mRevealedSpawnPos; /* 0x26C */ dAcRef_c<dAcBase_c> mWarpRef; - s32 getSpawnSubtype() const { - return (mParams >> 8 & 0xF); + SpawnSubtype getSpawnSubtype() const { + return (SpawnSubtype)(mParams >> 8 & 0xF); } - bool isSpawnSubtype(s32 spanwSubtype) const { + bool isSpawnSubtype(SpawnSubtype spanwSubtype) const { return getSpawnSubtype() == spanwSubtype; } - s32 getSubtype() const { - return (mParams >> 4 & 0xF); + Subtype getSubtype() const { + return (Subtype)(mParams >> 4 & 0xF); } - bool isSubtype(u8 subtype) const { + bool isSubtype(Subtype subtype) const { return getSubtype() == subtype; } s32 getInsectCount() const { |
