1
0
mirror of https://github.com/zeldaret/oot.git synced 2024-09-21 04:24:43 +00:00

Match z_en_dodongo.c (#1640)

This commit is contained in:
cadmic 2024-01-28 10:17:57 -08:00 committed by GitHub
parent 88aa6de9ff
commit 0e6dc594e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -669,8 +669,6 @@ void EnDodongo_SetupDeath(EnDodongo* this, PlayState* play) {
}
void EnDodongo_Death(EnDodongo* this, PlayState* play) {
EnBom* bomb;
if (this->skelAnime.curFrame < 35.0f) {
if (this->actor.params == EN_DODONGO_SMOKE_DEATH) {
EnDodongo_SpawnBombSmoke(this, play);
@ -680,7 +678,7 @@ void EnDodongo_Death(EnDodongo* this, PlayState* play) {
}
if (SkelAnime_Update(&this->skelAnime)) {
if (this->timer == 0) {
bomb = (EnBom*)Actor_Spawn(&play->actorCtx, play, ACTOR_EN_BOM, this->actor.world.pos.x,
EnBom* bomb = (EnBom*)Actor_Spawn(&play->actorCtx, play, ACTOR_EN_BOM, this->actor.world.pos.x,
this->actor.world.pos.y, this->actor.world.pos.z, 0, 0, 6, BOMB_BODY);
if (bomb != NULL) {
bomb->timer = 0;