summaryrefslogtreecommitdiff
path: root/src/objectUtils.c
diff options
context:
space:
mode:
authorTal Hayon <talhayon1@gmail.com>2022-01-29 15:12:23 +0200
committerTal Hayon <talhayon1@gmail.com>2022-01-29 15:12:23 +0200
commit578fb3d1d86e141fa413f534cf633eb2779ce93b (patch)
treea8e255d788b0731505e8e2d74a68ed5422f98038 /src/objectUtils.c
parentfd9049f59801a77ced44d85329ee871fda031d22 (diff)
Using EntityKind enum in various places
Diffstat (limited to 'src/objectUtils.c')
-rw-r--r--src/objectUtils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/objectUtils.c b/src/objectUtils.c
index 646b62e5..ab1bc5a0 100644
--- a/src/objectUtils.c
+++ b/src/objectUtils.c
@@ -16,7 +16,7 @@ Entity* sub_080A276C(Entity* parent, u32 type, u32 type2) {
Entity* e = sub_0805E744();
if (e != NULL) {
e->id = 0xC1;
- e->kind = 6;
+ e->kind = OBJECT;
e->type = type;
e->type2 = type2;
e->parent = parent;
@@ -100,7 +100,7 @@ u32 LoadObjectSprite(Entity* this, s32 type, const ObjectDefinition* definition)
Entity* CreateObject(u32 subtype, u32 form, u32 parameter) {
Entity* entity = GetEmptyEntity();
if (entity != NULL) {
- entity->kind = 6;
+ entity->kind = OBJECT;
entity->id = subtype;
entity->type = form;
entity->type2 = parameter;