mirror of
https://github.com/zeldaret/ss
synced 2026-05-25 23:35:13 -04:00
properly use subtype enum
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -77,7 +77,7 @@ inline bool checkProfile(u16 prof, u32 target) {
|
||||
}
|
||||
|
||||
int dTgInsect_c::actorPostCreate() {
|
||||
s32 subtype = mParams >> 4 & 0xF;
|
||||
Subtype subtype = getSubtype();
|
||||
// ??? doesn't match without the double comparison
|
||||
if (subtype == SUBTYPE_WOODLAND_RHINO_BEETLE
|
||||
|| subtype == SUBTYPE_WOODLAND_RHINO_BEETLE
|
||||
|
||||
Reference in New Issue
Block a user