1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-25 09:45:02 +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,8 +678,8 @@ 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,
this->actor.world.pos.y, this->actor.world.pos.z, 0, 0, 6, BOMB_BODY);
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;
this->timer = 8;