mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 14:31:17 +00:00
Fix RaycastFloor flags (#1328)
* fix raycast floor flags * format.sh * Name flags * Rename RaycastFloor functions, clean up caller code, document z_bg_spot15_rrbox * change comment to prevent format wrap * change to "if BGCHECK_GROUND_CHECK_ON is set" * roman suggestions
This commit is contained in:
parent
fe8d5988b9
commit
327a813b37
42 changed files with 497 additions and 451 deletions
|
@ -79,11 +79,11 @@ void EnBox_ClipToGround(EnBox* this, PlayState* play) {
|
|||
f32 newY;
|
||||
CollisionPoly* poly;
|
||||
s32 bgId;
|
||||
Vec3f pos;
|
||||
Vec3f checkPos;
|
||||
|
||||
pos = this->dyna.actor.world.pos;
|
||||
pos.y += 1.0f;
|
||||
newY = BgCheck_EntityRaycastFloor4(&play->colCtx, &poly, &bgId, &this->dyna.actor, &pos);
|
||||
checkPos = this->dyna.actor.world.pos;
|
||||
checkPos.y += 1.0f;
|
||||
newY = BgCheck_EntityRaycastDown4(&play->colCtx, &poly, &bgId, &this->dyna.actor, &checkPos);
|
||||
if (newY != BGCHECK_Y_MIN) {
|
||||
this->dyna.actor.world.pos.y = newY;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue