summaryrefslogtreecommitdiff
path: root/src/code_080A29BC.c
diff options
context:
space:
mode:
authorHenny022p <info@henny022.de>2021-05-02 02:27:18 +0200
committerHenny022p <info@henny022.de>2021-05-02 02:27:18 +0200
commitf477e63fa46717afd632283bcc141513183bccb3 (patch)
tree82105c348c8593723a72d1ebcff51b2c6e006aef /src/code_080A29BC.c
parent0cfa5a9a066b33f8b4896edfcd29bc13986f0c27 (diff)
use object enum in object creation
Diffstat (limited to 'src/code_080A29BC.c')
-rw-r--r--src/code_080A29BC.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/code_080A29BC.c b/src/code_080A29BC.c
index c8476217..a33d6124 100644
--- a/src/code_080A29BC.c
+++ b/src/code_080A29BC.c
@@ -1,6 +1,7 @@
#include "global.h"
#include "entity.h"
#include "room.h"
+#include "object.h"
void sub_080A29BC(Entity* parent) { // TODO this is CreateDust, why is it here again? Fogot to delete file?
CreateFx(parent, 2, 0);
@@ -9,7 +10,7 @@ void sub_080A29BC(Entity* parent) { // TODO this is CreateDust, why is it here a
void sub_080A29C8(s32 xOff, s32 yOff, u32 layer) {
Entity* pEVar1;
- pEVar1 = CreateObject(0xf, 2, 0);
+ pEVar1 = CreateObject(SPECIAL_FX, 2, 0);
if (pEVar1 != NULL) {
pEVar1->x.HALF.HI = gRoomControls.roomOriginX + xOff;
pEVar1->y.HALF.HI = gRoomControls.roomOriginY + yOff;
@@ -32,7 +33,7 @@ void sub_080A2A14(Entity* parent) {
Entity* sub_080A2A20(Entity* parent, u32 form, u32 parameter) {
Entity* pEVar1;
- pEVar1 = CreateObjectWithParent(parent, 0, form, parameter);
+ pEVar1 = CreateObjectWithParent(parent, GROUND_ITEM, form, parameter);
if (pEVar1 != NULL) {
pEVar1->actionDelay = 5;
}
@@ -42,7 +43,7 @@ Entity* sub_080A2A20(Entity* parent, u32 form, u32 parameter) {
Entity* sub_080A2A3C(Entity* parent, u32 form, u32 subtype, u32 param_4) {
Entity* ent;
- ent = CreateObjectWithParent(parent, 0, form, subtype);
+ ent = CreateObjectWithParent(parent, GROUND_ITEM, form, subtype);
if (ent != NULL) {
ent->actionDelay = 5;
*(u32*)(&ent->field_0x86) = param_4;