diff options
| author | Baoulettes <perlouzerie@hotmail.fr> | 2022-05-15 21:14:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-15 15:14:43 -0400 |
| commit | a72ebbe84de7bf5f5c91f56ebe2dd963fd915513 (patch) | |
| tree | fe044bd04baea494bd35984038acd69276c82423 | |
| parent | 3e01b25573e2f8a70a2abd2829d0ea7c0a7f30da (diff) | |
ACTOR_EN_FLOORMAS splitting fix (#311)
* Fix infinite split
* Update z_en_floormas.c
| -rw-r--r-- | soh/src/overlays/actors/ovl_En_Floormas/z_en_floormas.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/soh/src/overlays/actors/ovl_En_Floormas/z_en_floormas.c b/soh/src/overlays/actors/ovl_En_Floormas/z_en_floormas.c index 9e9e8f988..bc059daad 100644 --- a/soh/src/overlays/actors/ovl_En_Floormas/z_en_floormas.c +++ b/soh/src/overlays/actors/ovl_En_Floormas/z_en_floormas.c @@ -427,7 +427,8 @@ void EnFloormas_SetupFreeze(EnFloormas* this) { } void EnFloormas_Die(EnFloormas* this, GlobalContext* globalCtx) { - if (this->actor.scale.x > 0.004f) { + //Originally was doing > 0.004f, better fix thanks Gary :D + if (this->actor.scale.x > (f32)0.004f) { // split this->actor.shape.rot.y = this->actor.yawTowardsPlayer + 0x8000; EnFloormas_SetupSplit((EnFloormas*)this->actor.child); |
