From 53aaed17c0a635c8f5542c2b2aeaa65f63c734c4 Mon Sep 17 00:00:00 2001 From: YunataSavior <58997725+YunataSavior@users.noreply.github.com> Date: Mon, 12 Jan 2026 12:18:58 -0800 Subject: obj_pumpkin dbg equiv (#3036) --- include/SSystem/SComponent/c_angle.h | 3 +++ include/f_op/f_op_actor_mng.h | 2 +- include/global.h | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/SSystem/SComponent/c_angle.h b/include/SSystem/SComponent/c_angle.h index 29a43cd7df..da03a36bb3 100644 --- a/include/SSystem/SComponent/c_angle.h +++ b/include/SSystem/SComponent/c_angle.h @@ -5,14 +5,17 @@ #define ADD_ANGLE(x, y) ((x) += (s16)(y)) #define SUB_ANGLE(x, y) ((x) -= (s16)(y)) +#define MULT_ANGLE(x, y) ((x) *= (s16)(y)) // There are some angles that weren't sign-extended until the shield version #if !PLATFORM_SHIELD #define ADD_ANGLE_2(x, y) ((x) += (y)) #define SUB_ANGLE_2(x, y) ((x) -= (y)) + #define MULT_ANGLE_2(x, y) ((x) *= (y)) #else #define ADD_ANGLE_2(x, y) ADD_ANGLE(x, y) #define SUB_ANGLE_2(x, y) SUB_ANGLE(x, y) + #define MULT_ANGLE_2(x, y) MULT_ANGLE(x, y) #endif #define DEG2S_CONSTANT (0x8000 / 180.0f) diff --git a/include/f_op/f_op_actor_mng.h b/include/f_op/f_op_actor_mng.h index b81a7735cf..a5518264b7 100644 --- a/include/f_op/f_op_actor_mng.h +++ b/include/f_op/f_op_actor_mng.h @@ -802,7 +802,7 @@ inline void fopAcM_OnCarryType(fopAc_ac_c* i_actor, fopAcM_CARRY param_2) { } inline void fopAcM_OffCarryType(fopAc_ac_c* i_actor, fopAcM_CARRY param_2) { - i_actor->carryType &= ~param_2; + UNSET_FLAG(i_actor->carryType, param_2, u8); } enum fopAcM_FOOD { diff --git a/include/global.h b/include/global.h index d9e3511b22..8be30974cc 100644 --- a/include/global.h +++ b/include/global.h @@ -140,9 +140,9 @@ static const float INF = 2000000000.0f; // potential fakematch? #if PLATFORM_SHIELD - #define UNSET_FLAG(var, flag) (var) &= (u16)~(flag) + #define UNSET_FLAG(var, flag, type) (var) &= (type)~(flag) #else - #define UNSET_FLAG(var, flag) (var) &= ~(flag) + #define UNSET_FLAG(var, flag, type) (var) &= ~(flag) #endif #endif -- cgit v1.2.3