summaryrefslogtreecommitdiff
path: root/src/overlays
diff options
context:
space:
mode:
authorLucas Shaw <49287729+shawlucas@users.noreply.github.com>2024-04-11 02:20:00 -0400
committerGitHub <noreply@github.com>2024-04-10 23:20:00 -0700
commitfb02647839bda70f4e50a2f79c7bdcfb93ef61af (patch)
tree65c13ed9b50fe68cfb6da0b236f2db364969f0e2 /src/overlays
parent7146ace5cb89772c195a41ee41b375cf4fe2166e (diff)
m_olib.c OK (#167)
* m_olib.c OK * ran format.py * added functions to header file * updated graphics macros in two overlays to make them work with format.py * rename z64camera.h to m_camera2.h * made recommended changes
Diffstat (limited to 'src/overlays')
-rw-r--r--src/overlays/actors/ovl_Koinobori/ac_koinobori.c6
-rw-r--r--src/overlays/actors/ovl_Toudai/ac_toudai.c18
2 files changed, 16 insertions, 8 deletions
diff --git a/src/overlays/actors/ovl_Koinobori/ac_koinobori.c b/src/overlays/actors/ovl_Koinobori/ac_koinobori.c
index 11bad7a..e12ef87 100644
--- a/src/overlays/actors/ovl_Koinobori/ac_koinobori.c
+++ b/src/overlays/actors/ovl_Koinobori/ac_koinobori.c
@@ -112,13 +112,15 @@ void aKOI_actor_init(Actor* thisx, Game_Play* game_play) {
{ \
Gfx* __polyOpa = __gfxCtx->polyOpa.p; \
int __opa_opened = 0; \
- while (0)
+ do { \
+ } while (0)
#define CLOSE_POLY_OPA_DISPS() \
__gfxCtx->polyOpa.p = __polyOpa; \
(void)__opa_opened; \
} \
- while (0)
+ do { \
+ } while (0)
extern u16 aKOI_obj_e_koinobori_a_pal[];
extern u16 obj_e_koinobori_b_pal[];
diff --git a/src/overlays/actors/ovl_Toudai/ac_toudai.c b/src/overlays/actors/ovl_Toudai/ac_toudai.c
index c128db3..abbcffa 100644
--- a/src/overlays/actors/ovl_Toudai/ac_toudai.c
+++ b/src/overlays/actors/ovl_Toudai/ac_toudai.c
@@ -209,37 +209,43 @@ s32 aTOU_actor_draw_before(Game_Play* game_play UNUSED, SkeletonInfoR* skeletonI
{ \
Gfx* __polyOpa = __gfxCtx->polyOpa.p; \
int __opa_opened = 0; \
- while (0)
+ do { \
+ } while (0)
#define CLOSE_POLY_OPA_DISPS() \
__gfxCtx->polyOpa.p = __polyOpa; \
(void)__opa_opened; \
} \
- while (0)
+ do { \
+ } while (0)
#define OPEN_POLY_XLU_DISPS() \
{ \
Gfx* __polyXlu = __gfxCtx->polyXlu.p; \
int __xlu_opened = 0; \
- while (0)
+ do { \
+ } while (0)
#define CLOSE_POLY_XLU_DISPS() \
__gfxCtx->polyXlu.p = __polyXlu; \
(void)__xlu_opened; \
} \
- while (0)
+ do { \
+ } while (0);
#define OPEN_LIGHT_DISPS() \
{ \
Gfx* __light = __gfxCtx->light.p; \
int __light_opened = 0; \
- while (0)
+ do { \
+ } while (0)
#define CLOSE_LIGHT_DISPS() \
__gfxCtx->light.p = __light; \
(void)__light_opened; \
} \
- while (0)
+ do { \
+ } while (0)
extern Gfx obj_s_toudai_light_model[];
extern Gfx obj_w_toudai_light_model[];