diff options
| author | theo3 <arisstephenson2@gmail.com> | 2020-11-13 23:27:50 -0800 |
|---|---|---|
| committer | theo3 <arisstephenson2@gmail.com> | 2020-11-13 23:27:50 -0800 |
| commit | 3079c016b455c7008995d26ea227a4f05bc79988 (patch) | |
| tree | fbe584b74e020cd6d25bf7904b1ab576327b62b1 /src/code_080A29BC.c | |
| parent | 8fd74813959a978489e0c4917fcbfe86500debbb (diff) | |
clang-format and newlines
Diffstat (limited to 'src/code_080A29BC.c')
| -rw-r--r-- | src/code_080A29BC.c | 92 |
1 files changed, 42 insertions, 50 deletions
diff --git a/src/code_080A29BC.c b/src/code_080A29BC.c index bb9d1701..d33d3b94 100644 --- a/src/code_080A29BC.c +++ b/src/code_080A29BC.c @@ -2,68 +2,60 @@ #include "entity.h" #include "room.h" -void sub_080A29BC(Entity *parent) -{ - CreateFx(parent, 2, 0); +void sub_080A29BC(Entity* parent) { + CreateFx(parent, 2, 0); } -void sub_080A29C8(s32 xOff, s32 yOff, u32 layer) -{ - Entity *pEVar1; - - pEVar1 = CreateObject(0xf, 2, 0); - if (pEVar1 != NULL) { - pEVar1->x.HALF.HI = gRoomControls.roomOriginX + xOff; - pEVar1->y.HALF.HI = gRoomControls.roomOriginY + yOff; - pEVar1->collisionLayer = layer; - } +void sub_080A29C8(s32 xOff, s32 yOff, u32 layer) { + Entity* pEVar1; + + pEVar1 = CreateObject(0xf, 2, 0); + if (pEVar1 != NULL) { + pEVar1->x.HALF.HI = gRoomControls.roomOriginX + xOff; + pEVar1->y.HALF.HI = gRoomControls.roomOriginY + yOff; + pEVar1->collisionLayer = layer; + } } -void sub_080A29FC(Entity *parent) -{ - CreateFx(parent, 0x11, 0); +void sub_080A29FC(Entity* parent) { + CreateFx(parent, 0x11, 0); } -void sub_080A2A08(Entity *parent) -{ - CreateFx(parent, 0x6, 0); +void sub_080A2A08(Entity* parent) { + CreateFx(parent, 0x6, 0); } -void sub_080A2A14(Entity *parent) -{ - CreateFx(parent, 0xb, 0); +void sub_080A2A14(Entity* parent) { + CreateFx(parent, 0xb, 0); } -Entity * sub_080A2A20(Entity *parent, u32 form, u32 parameter) -{ - Entity *pEVar1; - - pEVar1 = CreateObjectWithParent(parent, 0, form, parameter); - if (pEVar1 != NULL) { - pEVar1->actionDelay = 5; - } - return pEVar1; +Entity* sub_080A2A20(Entity* parent, u32 form, u32 parameter) { + Entity* pEVar1; + + pEVar1 = CreateObjectWithParent(parent, 0, form, parameter); + if (pEVar1 != NULL) { + pEVar1->actionDelay = 5; + } + return pEVar1; } -Entity * sub_080A2A3C(Entity *parent, u32 form, u32 subtype, u32 param_4) -{ - Entity *ent; - - ent = CreateObjectWithParent(parent, 0, form, subtype); - if (ent != NULL) { - ent->actionDelay = 5; - *(u32*)(&ent->field_0x86) = param_4; - } - return ent; +Entity* sub_080A2A3C(Entity* parent, u32 form, u32 subtype, u32 param_4) { + Entity* ent; + + ent = CreateObjectWithParent(parent, 0, form, subtype); + if (ent != NULL) { + ent->actionDelay = 5; + *(u32*)(&ent->field_0x86) = param_4; + } + return ent; } -Entity * sub_080A2A64(Entity *parent) -{ - Entity *pEVar1; - - pEVar1 = CreateFx(parent, 0x20, 0); - if (pEVar1 != NULL) { - pEVar1->spritePriority.b0 = 7; - } - return pEVar1; +Entity* sub_080A2A64(Entity* parent) { + Entity* pEVar1; + + pEVar1 = CreateFx(parent, 0x20, 0); + if (pEVar1 != NULL) { + pEVar1->spritePriority.b0 = 7; + } + return pEVar1; } |
