summaryrefslogtreecommitdiff
path: root/src/code/z_actor.c
diff options
context:
space:
mode:
authorDragorn421 <Dragorn421@users.noreply.github.com>2026-02-22 19:08:12 +0100
committerGitHub <noreply@github.com>2026-02-22 19:08:12 +0100
commitabdae818bda2f397c23e41078a4d89079b9fa7b8 (patch)
tree852c49d60db6b6c763dd4cd4168fff56546dce7a /src/code/z_actor.c
parentf2cb5ecb2f7c174d69c61ab1dfa6f7784050014e (diff)
Fix misc 23 (#2699)
* remove noop macros Fault_SetFontColor Fault_SetCharPad under PLATFORM_N64 * remove duplicate declarations in sfx.h * use render mode presets more * decimal for alpha values * fix some z_camera comments typos * fix references to preprocess.sh (used to be preprocess.py) * remove outdated comment on deps in makefile * code_800AD920 was renamed to z_viszbuf * fix capitalization typo: gOcarinaofTimeDesignTex -> gOcarinaOfTimeDesignTex * fix typo: gLinkAdultEyesClosedfTex, gLinkChildEyesClosedfTex -> remove extra f * fix typo: gCrstalSwitchRedTex, gCrstalSwitchBlueTex -> gCrystal * fix PARAMS_GET_U amount of bits
Diffstat (limited to 'src/code/z_actor.c')
-rw-r--r--src/code/z_actor.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/code/z_actor.c b/src/code/z_actor.c
index 4a86cf25c..ddb8a9e0b 100644
--- a/src/code/z_actor.c
+++ b/src/code/z_actor.c
@@ -4511,9 +4511,7 @@ Gfx* func_80034B54(GraphicsContext* gfxCtx) {
displayList = displayListHead = GRAPH_ALLOC(gfxCtx, 2 * sizeof(Gfx));
- gDPSetRenderMode(displayListHead++, G_RM_FOG_SHADE_A,
- AA_EN | Z_CMP | Z_UPD | IM_RD | CLR_ON_CVG | CVG_DST_WRAP | ZMODE_XLU | FORCE_BL |
- GBL_c2(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA));
+ gDPSetRenderMode(displayListHead++, G_RM_FOG_SHADE_A, Z_UPD | G_RM_AA_ZB_XLU_SURF2);
gSPEndDisplayList(displayListHead++);
@@ -4565,10 +4563,10 @@ s16 Actor_UpdateAlphaByDistance(Actor* actor, PlayState* play, s16 alpha, f32 ra
if (radius < distance) {
actor->flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
- Math_SmoothStepToS(&alpha, 0, 6, 0x14, 1);
+ Math_SmoothStepToS(&alpha, 0, 6, 20, 1);
} else {
actor->flags |= ACTOR_FLAG_ATTENTION_ENABLED;
- Math_SmoothStepToS(&alpha, 0xFF, 6, 0x14, 1);
+ Math_SmoothStepToS(&alpha, 255, 6, 20, 1);
}
return alpha;