summaryrefslogtreecommitdiff
path: root/src/code/m_actor_shadow.c
diff options
context:
space:
mode:
authorTom Overton <tom-overton@users.noreply.github.com>2024-02-29 19:01:29 -0800
committerGitHub <noreply@github.com>2024-02-29 20:01:29 -0700
commit55a27a19353e0d5a0d8706ad1a5fcb877290b949 (patch)
tree02384425d7197b942573321eef833111b954f5e5 /src/code/m_actor_shadow.c
parent26183fe65445602a9fbf5dbe7338be08a6bb8ec9 (diff)
Update `OPEN_DISPS`/`CLOSE_DISPS` macros, clean up various fake matches, and match `mSM_draw_mail` (#152)
* Update `OPEN_DISPS`/`CLOSE_DISPS` macros and match `mSM_draw_mail` * Improve matches in `ac_train_window`
Diffstat (limited to 'src/code/m_actor_shadow.c')
-rw-r--r--src/code/m_actor_shadow.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/code/m_actor_shadow.c b/src/code/m_actor_shadow.c
index c0ab1bd..b8c993a 100644
--- a/src/code/m_actor_shadow.c
+++ b/src/code/m_actor_shadow.c
@@ -192,19 +192,6 @@ void mActorShadow_GetLastAlphaScale(f32* scale, u8* alpha, Actor* actor, ShadowI
*alpha = alphaCalc;
}
-#define AC_GCN_OPEN_DISP(gfxCtx) \
- { \
- GraphicsContext* __gfxCtx = gfxCtx; \
- int __gfx_opened = 0; \
- do { \
- } while (0)
-
-#define AC_GCN_CLOSE_DISP(gfxCtx) \
- (void)__gfx_opened; \
- } \
- do { \
- } while (0)
-
void mActorShadow_DrawActorShadow(Actor* actor, ShadowInfo* shadow, Game* game, f32 rad, s32 id, xyz_t ofs) {
Game_Play* play = (Game_Play*)game;
u8 alpha;
@@ -217,7 +204,7 @@ void mActorShadow_DrawActorShadow(Actor* actor, ShadowInfo* shadow, Game* game,
mActorShadow_GetLastAlphaScale(&scale, &alpha, actor, shadow);
- AC_GCN_OPEN_DISP(play->state.gfxCtx);
+ OPEN_DISPS(play->state.gfxCtx);
_texture_z_light_fog_prim_shadow(play->state.gfxCtx);
@@ -287,7 +274,7 @@ void mActorShadow_DrawActorShadow(Actor* actor, ShadowInfo* shadow, Game* game,
gSPDisplayList(SHADOW_DISP++, ef_shadow_in_modelT);
}
- AC_GCN_CLOSE_DISP(play->state.gfxCtx);
+ CLOSE_DISPS(play->state.gfxCtx);
}
void mActorShadow_GetShadowPosition(Actor* actor, xyz_t* position) {