mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-25 09:45:02 +00:00
Match z_en_bom.c (#1639)
This commit is contained in:
parent
98a3238822
commit
88aa6de9ff
1 changed files with 4 additions and 1 deletions
|
@ -132,7 +132,8 @@ void EnBom_Move(EnBom* this, PlayState* play) {
|
|||
|
||||
// rebound bomb off the wall it hits
|
||||
if ((this->actor.speed != 0.0f) && (this->actor.bgCheckFlags & BGCHECKFLAG_WALL)) {
|
||||
if (ABS((s16)(this->actor.wallYaw - this->actor.world.rot.y)) > 0x4000) {
|
||||
s16 yawDiff = this->actor.wallYaw - this->actor.world.rot.y;
|
||||
if (ABS(yawDiff) > 0x4000) {
|
||||
this->actor.world.rot.y = ((this->actor.wallYaw - this->actor.world.rot.y) + this->actor.wallYaw) - 0x8000;
|
||||
}
|
||||
Actor_PlaySfx(&this->actor, NA_SE_EV_BOMB_BOUND);
|
||||
|
@ -358,7 +359,9 @@ void EnBom_Draw(Actor* thisx, PlayState* play) {
|
|||
s32 pad;
|
||||
EnBom* this = (EnBom*)thisx;
|
||||
|
||||
#ifdef OOT_DEBUG
|
||||
if (1) {}
|
||||
#endif
|
||||
|
||||
OPEN_DISPS(play->state.gfxCtx, "../z_en_bom.c", 913);
|
||||
|
||||
|
|
Loading…
Reference in a new issue