1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-24 16:01:26 +00:00

Name variables holding poly normals and variables used in COLPOLY_GET_NORMAL (#1168)

This commit is contained in:
Dragorn421 2022-03-09 01:43:07 +01:00 committed by GitHub
parent e53ec1962b
commit c73053db6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 104 additions and 99 deletions

View file

@ -407,7 +407,7 @@ void func_80AAE224(EnMm* this, GlobalContext* globalCtx) {
}
void func_80AAE294(EnMm* this, GlobalContext* globalCtx) {
f32 floorYNorm;
f32 floorPolyNormalY;
Vec3f dustPos;
if (!Player_InCsMode(globalCtx)) {
@ -439,9 +439,9 @@ void func_80AAE294(EnMm* this, GlobalContext* globalCtx) {
if (func_80AADA70() == 0) {
if (this->actor.floorPoly != NULL) {
floorYNorm = COLPOLY_GET_NORMAL(this->actor.floorPoly->normal.y);
floorPolyNormalY = COLPOLY_GET_NORMAL(this->actor.floorPoly->normal.y);
if ((floorYNorm > 0.9848f) || (floorYNorm < -0.9848f)) {
if ((floorPolyNormalY > 0.9848f) || (floorPolyNormalY < -0.9848f)) {
if (this->sitTimer > 30) {
EnMm_ChangeAnim(this, RM_ANIM_SIT, &this->curAnimIndex);
this->actionFunc = func_80AAE224;