Fix a fake match on `EnSGoro` (#1633)

* Fix

* worldPos
This commit is contained in:
Anghelo Carvajal 2024-05-17 10:05:15 -04:00 committed by GitHub
parent a04f1b8e05
commit 7b2f062df1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 6 deletions

View File

@ -884,18 +884,19 @@ void EnSGoro_UpdateToIdleAnimation(EnSGoro* this) {
}
void EnSGoro_UpdateCollider(EnSGoro* this, PlayState* play) {
Vec3f world_pos = this->actor.world.pos;
Vec3f worldPos = this->actor.world.pos;
f32 radius = 24.0f;
f32 height = 62.0f;
this->collider.dim.pos.x = world_pos.x;
this->collider.dim.pos.y = world_pos.y;
this->collider.dim.pos.z = world_pos.z;
this->collider.dim.pos.x = worldPos.x;
this->collider.dim.pos.y = worldPos.y;
this->collider.dim.pos.z = worldPos.z;
this->collider.dim.radius = radius;
this->collider.dim.height = height;
//! @bug: It is not clear what this is for.
if ((s32)this != -0x190) {
//! @bug: The check is useless. If &this->collider somehow was NULL the above code would have already dereferenced
//! it.
if (&this->collider != NULL) {
CollisionCheck_SetOC(play, &play->colChkCtx, &this->collider.base);
}
}