summaryrefslogtreecommitdiff
path: root/src/createObject.c
diff options
context:
space:
mode:
authortheo <arisstephenson2@gmail.com>2020-06-13 17:02:27 -0700
committertheo <arisstephenson2@gmail.com>2020-06-13 17:02:27 -0700
commit66fcdf618665694fb5f5c2d3788561f4e638f167 (patch)
tree106b704cf63fa68f2c714247958b013fcf38b0d0 /src/createObject.c
parent8e1ca1936b4066fa252a14576cb5e4e79aff92b8 (diff)
clang-format
Diffstat (limited to 'src/createObject.c')
-rw-r--r--src/createObject.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/createObject.c b/src/createObject.c
index c6863ac9..702107f4 100644
--- a/src/createObject.c
+++ b/src/createObject.c
@@ -1,21 +1,21 @@
#include "global.h"
#include "entity.h"
-extern Entity * GetEmptyEntity();
-extern void sub_0805EA2C(Entity *,u8);
+extern Entity* GetEmptyEntity();
+extern void sub_0805EA2C(Entity*, u8);
-Entity * CreateObject(u32 subtype,u32 param1,u32 param2)
+Entity* CreateObject(u32 subtype, u32 param1, u32 param2)
{
- Entity *newEnt;
-
+ Entity* newEnt;
+
newEnt = GetEmptyEntity();
if (newEnt != NULL) {
(newEnt->entityType).type = 6;
(newEnt->entityType).subtype = subtype;
(newEnt->entityType).parameter1 = param1;
(newEnt->entityType).parameter2 = param2;
- sub_0805EA2C(newEnt,6);
+ sub_0805EA2C(newEnt, 6);
}
return newEnt;
-} \ No newline at end of file
+}