divide and conquer

This commit is contained in:
theo
2020-05-20 23:36:05 -07:00
parent c0ce9ad010
commit e7470cdedd
40 changed files with 38463 additions and 38171 deletions
+21
View File
@@ -0,0 +1,21 @@
#include "global.h"
#include "entity.h"
extern Entity * GetEmptyEntity();
extern void sub_0805EA2C(Entity *,u8);
Entity * CreateObject(u32 subtype,u32 param1,u32 param2)
{
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);
}
return newEnt;
}