summaryrefslogtreecommitdiff
path: root/src/projectile
diff options
context:
space:
mode:
authortheo3 <arisstephenson2@gmail.com>2023-12-30 20:05:32 -0800
committertheo3 <arisstephenson2@gmail.com>2023-12-30 20:05:32 -0800
commit201955ea052a5188f2e59bdcdbf6c52ff158ee66 (patch)
tree66474a7515b56c90e1d0b94a0a39f42da6677d71 /src/projectile
parent37714644960c56650dd1067b86aafa685eaf01f4 (diff)
create enemy struct and enemy flags
Diffstat (limited to 'src/projectile')
-rw-r--r--src/projectile/gleerokProjectile.c2
-rw-r--r--src/projectile/octorokBossProjectile.c2
-rw-r--r--src/projectile/v2Projectile.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/projectile/gleerokProjectile.c b/src/projectile/gleerokProjectile.c
index ed957966..2b4af4f2 100644
--- a/src/projectile/gleerokProjectile.c
+++ b/src/projectile/gleerokProjectile.c
@@ -86,7 +86,7 @@ void GleerokProjectile_Init(GleerokProjectileEntity* this) {
super->x.HALF.HI += gUnk_08129980[Random() & 7];
super->y.HALF.HI += gUnk_08129988[Random() & 0xf];
}
- sub_08004168(super);
+ SnapToTile(super);
InitializeAnimation(super, 0);
break;
}
diff --git a/src/projectile/octorokBossProjectile.c b/src/projectile/octorokBossProjectile.c
index 3786d872..789e3a41 100644
--- a/src/projectile/octorokBossProjectile.c
+++ b/src/projectile/octorokBossProjectile.c
@@ -150,7 +150,7 @@ void OctorokBossProjectile_Action1(OctorokBossProjectileEntity* this) {
return;
}
for (index = 0; index < 3; ++index) {
- super->child = CreateProjectileWithParent(super, OCTOROK_BOSS_PROJECTILE, 1);
+ super->child = EnemyCreateProjectile(super, OCTOROK_BOSS_PROJECTILE, 1);
if (super->child != NULL) {
super->child->parent = super->parent;
super->child->direction = super->direction + gUnk_08129ADC[index];
diff --git a/src/projectile/v2Projectile.c b/src/projectile/v2Projectile.c
index cb59c16a..e602c6f4 100644
--- a/src/projectile/v2Projectile.c
+++ b/src/projectile/v2Projectile.c
@@ -157,7 +157,7 @@ void sub_080ABE04(Entity* this) {
}
this->x.HALF.HI = newX + ((0xe0 & rand) >> 1);
this->y.HALF.HI += ((0xf & rand) << 4);
- sub_08004168(this);
+ SnapToTile(this);
InitializeAnimation(this, 0);
SoundReq(SFX_12D);
}