mirror of
https://github.com/zeldaret/tmc
synced 2026-06-25 10:02:06 -04:00
Using EntityKind enum in various places
This commit is contained in:
@@ -322,7 +322,7 @@ static Entity* sub_0808EC80(int form) {
|
||||
Entity* entityA = (Entity*)&gEntityLists[6];
|
||||
Entity* entityB = entityA->next;
|
||||
while (entityB != entityA) {
|
||||
if ((entityB->kind == 0x6 && entityB->id == 0x48) && form == entityB->type) {
|
||||
if ((entityB->kind == OBJECT && entityB->id == 0x48) && form == entityB->type) {
|
||||
return entityB;
|
||||
}
|
||||
entityB = entityB->next;
|
||||
|
||||
@@ -283,7 +283,7 @@ void nullsub_510(Entity* this) {
|
||||
|
||||
void sub_08081328(Entity* this) {
|
||||
Entity* other = this->child;
|
||||
if (!(other->kind == 8 && other->id == 3)) {
|
||||
if (!(other->kind == PLAYER_ITEM && other->id == 3)) {
|
||||
sub_08081404(this, 0);
|
||||
} else {
|
||||
CopyPosition(other, this);
|
||||
|
||||
Reference in New Issue
Block a user