diff options
Diffstat (limited to 'src/createObject.c')
| -rw-r--r-- | src/createObject.c | 14 |
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 +} |
