ACTOR_EN_FLOORMAS splitting fix (#311)

* Fix infinite split

* Update z_en_floormas.c
This commit is contained in:
Baoulettes 2022-05-15 21:14:43 +02:00 committed by GitHub
parent 3e01b25573
commit a72ebbe84d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);