Update z_en_floormas.c

This commit is contained in:
Baoulettes 2022-05-13 16:47:39 +02:00 committed by GitHub
commit e3fe337a6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -427,9 +427,8 @@ void EnFloormas_SetupFreeze(EnFloormas* this) {
} }
void EnFloormas_Die(EnFloormas* this, GlobalContext* globalCtx) { void EnFloormas_Die(EnFloormas* this, GlobalContext* globalCtx) {
//Originally was doing > 0.004f that is not correct since apparently //Originally was doing > 0.004f, better fix thanks Gary :D
//that not 0.004f precisly therefore making a bit of size margin help. if (this->actor.scale.x > (f32)0.004f) {
if (this->actor.scale.x > 0.005f) {
// split // split
this->actor.shape.rot.y = this->actor.yawTowardsPlayer + 0x8000; this->actor.shape.rot.y = this->actor.yawTowardsPlayer + 0x8000;
EnFloormas_SetupSplit((EnFloormas*)this->actor.child); EnFloormas_SetupSplit((EnFloormas*)this->actor.child);