Use EntityFlags enum where applicable

This commit is contained in:
Tal Hayon
2022-01-29 15:34:30 +02:00
parent fd9049f598
commit d78359e9a2
65 changed files with 113 additions and 113 deletions
+3 -3
View File
@@ -26,7 +26,7 @@ void sub_08077BB8(ItemBehavior* beh) {
UnkItemStruct* unk = (UnkItemStruct*)beh; // @nocheckin
Entity* temp = sub_08077C54(unk);
if (temp != NULL) {
temp->flags = 0x20;
temp->flags = ENT_PERSIST;
}
gPlayerState.item = temp;
}
@@ -92,7 +92,7 @@ Entity* CreatePlayerItem(u32 subtype, u32 form, u32 parameter, u32 unk) {
ent = GetEmptyEntity();
if (ent != NULL) {
ent->flags = 0x80;
ent->flags = ENT_COLLIDE;
ent->kind = 8;
ent->id = subtype;
ent->type = form;
@@ -108,7 +108,7 @@ Entity* sub_08077CF8(u32 subtype, u32 form, u32 parameter, u32 unk) {
ent = sub_0805E744();
if (ent != NULL) {
ent->flags = 0x80;
ent->flags = ENT_COLLIDE;
ent->kind = 8;
ent->id = subtype;
ent->type = form;