mirror of
https://github.com/zeldaret/tmc
synced 2026-07-27 14:52:13 -04:00
Using EntityKind enum in various places
This commit is contained in:
@@ -113,7 +113,7 @@ Entity* Manager28_FindMatchingEntity(EntityData* unk1) {
|
||||
y = unk1->yPos + gRoomControls.origin_y;
|
||||
tmp = &gEntityLists[4];
|
||||
for (i = tmp->first; (u32)i != (u32)tmp; i = i->next) {
|
||||
if (x == i->x.HALF.HI && y == i->y.HALF.HI && unk1->id == i->id && 3 == i->kind && unk1->type == i->type) {
|
||||
if (x == i->x.HALF.HI && y == i->y.HALF.HI && unk1->id == i->id && ENEMY == i->kind && unk1->type == i->type) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ void ManagerB_LoadFight(Manager* this) {
|
||||
if (prop) {
|
||||
while (*((u8*)prop) != 0xFF) {
|
||||
ent = LoadRoomEntity(prop++);
|
||||
if (ent && (ent->kind == 3)) {
|
||||
if (ent && (ent->kind == ENEMY)) {
|
||||
ent->field_0x6c.HALF.HI |= 0x40;
|
||||
ManagerBHelper_Monitor(monitor, ent, counter++);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user