From 803ff1fb1593cdc0c62d14882973af04dc0f988e Mon Sep 17 00:00:00 2001 From: Derek Hensley Date: Sat, 13 Jul 2024 11:15:12 -0700 Subject: Another General Cleanup (#1651) * add z64player.h include to z_player.c * NULL check in func_80AEE374 * Couple formating things * parameter R_PICTO_PHOTO_STATE * Remove COLPOLY_NORMAL_FRAC * DynaPolyActor_Init transformFlags * Float in ObjDriftice_Init * aspMainStack * Add gbi defines to m2ctx * Add GBI_DEFINES to COMMON_DEFINES in makefile instead of duplicating it * Add version to build include for m2ctx * Invadepoh includes * Sort calc_bss includes like makefile --- src/code/z_bgcheck.c | 4 ++-- src/code/z_parameter.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/code') diff --git a/src/code/z_bgcheck.c b/src/code/z_bgcheck.c index 060954255..1b3c11ed6 100644 --- a/src/code/z_bgcheck.c +++ b/src/code/z_bgcheck.c @@ -413,8 +413,8 @@ s32 CollisionPoly_LineVsPoly(BgLineVsPolyTest* a0) { dpA += a0->poly->normal.z * a0->posA->z; dpB += a0->poly->normal.z * a0->posB->z; - dpA *= COLPOLY_NORMAL_FRAC; - dpB *= COLPOLY_NORMAL_FRAC; + dpA = COLPOLY_GET_NORMAL(dpA); + dpB = COLPOLY_GET_NORMAL(dpB); planeDistA += dpA; planeDistB += dpB; diff --git a/src/code/z_parameter.c b/src/code/z_parameter.c index 6002bc5c4..674e7e2e0 100644 --- a/src/code/z_parameter.c +++ b/src/code/z_parameter.c @@ -2368,7 +2368,7 @@ void Interface_UpdateButtonsPart1(PlayState* play) { if (!CHECK_EVENTINF(EVENTINF_41) || (CHECK_EVENTINF(EVENTINF_41) && (CutsceneManager_GetCurrentCsId() == CS_ID_NONE))) { Audio_PlaySfx(NA_SE_SY_CAMERA_SHUTTER); - SREG(89) = 1; + R_PICTO_PHOTO_STATE = PICTO_PHOTO_STATE_SETUP; play->haltAllActors = true; sPictoState = PICTO_BOX_STATE_SETUP_PHOTO; sPictoPhotoBeingTaken = true; -- cgit v1.2.3