diff options
Diffstat (limited to 'src/createEnemy.c')
| -rw-r--r-- | src/createEnemy.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/createEnemy.c b/src/createEnemy.c deleted file mode 100644 index 6c97985c..00000000 --- a/src/createEnemy.c +++ /dev/null @@ -1,23 +0,0 @@ -#include "enemy.h" - -/** Unsets bitfield 0x80 before calling GetNextFunction, so that the enemyFunction 1 is not called. */ -void EnemyFunctionHandlerAfterCollision(Entity* entity, void (*const fntable[])()) { - u32 idx; - entity->contactFlags &= ~0x80; - idx = GetNextFunction(entity); - entity->contactFlags |= 0x80; - fntable[idx](entity); -} - -Entity* CreateEnemy(u32 subtype, u32 form) { - Entity* enemy; - - enemy = GetEmptyEntity(); - if (enemy != NULL) { - enemy->kind = ENEMY; - enemy->id = subtype; - enemy->type = form; - AppendEntityToList(enemy, 4); - } - return enemy; -} |
