1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-02-23 15:55:47 +00:00

rematch EnGo2_StopRolling

This commit is contained in:
feacur 2024-11-12 09:40:32 +01:00
parent b908614ceb
commit 41b9cd0487

View file

@ -1395,16 +1395,19 @@ void EnGo2_StartRolling(EnGo2* this, PlayState* play) {
void EnGo2_StopRolling(EnGo2* this, PlayState* play) {
EnBom* bomb;
if ((ENGO2_GET_TYPE(this) != GORON_CITY_ROLLING_BIG) && (ENGO2_GET_TYPE(this) != GORON_CITY_LINK)) {
if (ENGO2_GET_TYPE(this) == GORON_DMT_ROLLING_SMALL) {
switch (ENGO2_GET_TYPE(this)) {
case GORON_DMT_ROLLING_SMALL:
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, 0, 0);
if (bomb != NULL) {
bomb->timer = 0;
}
}
} else {
this->collider.elem.acElemFlags = ACELEM_NONE;
break;
case GORON_CITY_LINK:
case GORON_CITY_ROLLING_BIG:
this->collider.elem.acElemFlags = ACELEM_NONE;
break;
}
this->actor.shape.rot = this->actor.world.rot;