diff options
| author | octorock <79596758+octorock@users.noreply.github.com> | 2023-07-30 23:56:42 +0200 |
|---|---|---|
| committer | octorock <79596758+octorock@users.noreply.github.com> | 2023-12-29 22:56:38 +0100 |
| commit | c63a86fbcac78c1773b31383a8837a508c649971 (patch) | |
| tree | c6dfd8950b4afaaf1281b525b818261afe191944 /src/enemy/sluggula.c | |
| parent | b28f865051ab27862d14077a046f2eea6e72191e (diff) | |
Create some enemy structs
Diffstat (limited to 'src/enemy/sluggula.c')
| -rw-r--r-- | src/enemy/sluggula.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/enemy/sluggula.c b/src/enemy/sluggula.c index a5bf26bb..c2cf7d5f 100644 --- a/src/enemy/sluggula.c +++ b/src/enemy/sluggula.c @@ -4,7 +4,7 @@ * * @brief Sluggula enemy */ - +#define NENT_DEPRECATED #include "enemy.h" #include "physics.h" @@ -129,9 +129,9 @@ void sub_08023CE0(Entity* this) { GetNextFrame(this); if (this->frame) { if (this->frame & ANIM_DONE) { - Entity* ent = CreateEnemy(SLUGGULA, 1); - if (ent != NULL) { - sub_0804A4E4(this, ent); + Entity* entity = CreateEnemy(SLUGGULA, 1); + if (entity != NULL) { + sub_0804A4E4(this, entity); DeleteThisEntity(); } } else { @@ -156,14 +156,14 @@ void sub_08023E10(Entity* this) { } void sub_08023E54(Entity* this) { - Entity* ent; + Entity* entity; if (this->subtimer++ > 27) { this->subtimer = 0; - ent = CreateEnemy(SLUGGULA, 2); - if (ent != NULL) { + entity = CreateEnemy(SLUGGULA, 2); + if (entity != NULL) { const s8* ptr = &gUnk_080CBDF7[this->animationState * 2]; - PositionRelative(this, ent, Q_16_16(ptr[0]), Q_16_16(ptr[1])); + PositionRelative(this, entity, Q_16_16(ptr[0]), Q_16_16(ptr[1])); } } } |
