Skip to content

Commit

Permalink
Duplicate function in z_en_bom.c to remove implicit declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
lilDavid committed Dec 21, 2023
1 parent e6d84e2 commit ed831a8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion soh/src/overlays/actors/ovl_En_Bom/z_en_bom.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,12 @@ void ArrowBomb_Charge(EnBom* this, PlayState* play) {
}
}

void ArrowBomb_80865ECC(Vec3f* unkPos, Vec3f* firePos, f32 scale) {
unkPos->x += ((firePos->x - unkPos->x) * scale);
unkPos->y += ((firePos->y - unkPos->y) * scale);
unkPos->z += ((firePos->z - unkPos->z) * scale);
}

void ArrowBomb_Fly(EnBom* this, PlayState* play) {
EnArrow* arrow;
f32 distanceScaled;
Expand All @@ -545,7 +551,7 @@ void ArrowBomb_Fly(EnBom* this, PlayState* play) {
if (distanceScaled < 1.0f) {
this->unk_158 = 1.0f;
}
func_80865ECC(&this->unkPos, &this->actor.world.pos, 0.05f);
ArrowBomb_80865ECC(&this->unkPos, &this->actor.world.pos, 0.05f);

if (arrow->hitFlags & 1) {
this->timer = 0;
Expand Down

0 comments on commit ed831a8

Please sign in to comment.