diff options
| author | theo <arisstephenson2@gmail.com> | 2020-06-13 17:02:27 -0700 |
|---|---|---|
| committer | theo <arisstephenson2@gmail.com> | 2020-06-13 17:02:27 -0700 |
| commit | 66fcdf618665694fb5f5c2d3788561f4e638f167 (patch) | |
| tree | 106b704cf63fa68f2c714247958b013fcf38b0d0 /src/createObjectWithParent.c | |
| parent | 8e1ca1936b4066fa252a14576cb5e4e79aff92b8 (diff) | |
clang-format
Diffstat (limited to 'src/createObjectWithParent.c')
| -rw-r--r-- | src/createObjectWithParent.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/createObjectWithParent.c b/src/createObjectWithParent.c index f7eb9814..bee2c86c 100644 --- a/src/createObjectWithParent.c +++ b/src/createObjectWithParent.c @@ -1,18 +1,17 @@ #include "global.h" #include "entity.h" -extern Entity * CreateObject(); +extern Entity* CreateObject(); extern void CopyPosition(); -Entity * CreateObjectWithParent(Entity *parentEnt,u32 subtype,u32 param1, u32 param2) -{ - Entity *ent; - +Entity* CreateObjectWithParent(Entity* parentEnt, u32 subtype, u32 param1, u32 param2) { + Entity* ent; + ent = CreateObject(subtype, param1, param2); if (ent != NULL) { ent->parent = parentEnt; - CopyPosition(parentEnt,ent); + CopyPosition(parentEnt, ent); } - - return ent; -}
\ No newline at end of file + + return ent; +} |
