summaryrefslogtreecommitdiff
path: root/src/enemy/enemy4D.c
diff options
context:
space:
mode:
authorHenny022p <73211432+Henny022p@users.noreply.github.com>2026-02-08 16:59:19 +0100
committerGitHub <noreply@github.com>2026-02-08 16:59:19 +0100
commitb09c069c1a082b384d8e289707ffab608487a62f (patch)
tree4843cdbaaba1ce9d435186559deb41c1e35fc482 /src/enemy/enemy4D.c
parentb68b975d6c893b0b24299f801a0b63582f11f234 (diff)
parentf3365f1e2ecd0559f50b21dcce1556a50d5db57c (diff)
Merge pull request #697 from Henny022p/peahat-delta-speed
Document Peahat
Diffstat (limited to 'src/enemy/enemy4D.c')
-rw-r--r--src/enemy/enemy4D.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/enemy/enemy4D.c b/src/enemy/enemy4D.c
index 4fe0acfa..479941f6 100644
--- a/src/enemy/enemy4D.c
+++ b/src/enemy/enemy4D.c
@@ -33,8 +33,6 @@ typedef struct {
extern void sub_0803E9A4(Entity*); // ballChainSoldier
extern void sub_0803E94C(Entity*, u32); // ballChainSoldier
-extern Entity* gUnk_020000B0;
-
void sub_0803EE8C(Enemy4DEntity*);
bool32 sub_0803EF20(Enemy4DEntity*);
bool32 sub_0803EEA4(Enemy4DEntity*);
@@ -120,7 +118,7 @@ void Enemy4D_Init(Enemy4DEntity* this) {
void Enemy4D_Action1(Enemy4DEntity* this) {
this->unk_7c -= 0xa;
if (sub_08049DF4(1)) {
- super->direction = DirectionRoundUp(GetFacingDirection(super, gUnk_020000B0));
+ super->direction = DirectionRoundUp(GetFacingDirection(super, gEnemyTarget));
sub_0803E94C(super, 0);
}
sub_0803E9A4(super);
@@ -268,7 +266,7 @@ bool32 sub_0803EEA4(Enemy4DEntity* this) {
s32 tmp;
if (sub_08049FDC(super, 1)) {
if (sub_0803EF04(this, 0x4e) != 0) {
- tmp = sub_0804A044(super, gUnk_020000B0, 0x12);
+ tmp = sub_0804A044(super, gEnemyTarget, 0x12);
if (tmp != 0xff) {
if (--this->unk_7a == 0) {
super->action = 5;
@@ -285,7 +283,7 @@ bool32 sub_0803EEA4(Enemy4DEntity* this) {
}
bool32 sub_0803EF04(Enemy4DEntity* this, u32 distance) {
- return EntityWithinDistance(super, gUnk_020000B0->x.HALF.HI, gUnk_020000B0->y.HALF.HI - 4, distance);
+ return EntityWithinDistance(super, gEnemyTarget->x.HALF.HI, gEnemyTarget->y.HALF.HI - 4, distance);
}
bool32 sub_0803EF20(Enemy4DEntity* this) {