mirror of
https://github.com/zeldaret/tp
synced 2026-07-11 15:28:38 -04:00
Misc matches and fixes (#2703)
* Match mDoExt_morf_c::getPlayMode * Misc cleanup * Fix actor cull spheres * Match daPy_py_c::getLastSceneSwordAtUpTime, JUTGamePad::testTrigger * Fix improper demangling of dBgS_SphChk::SetCallback * Fix d_camera rangef weak func order * Match more alink_wolf funcs
This commit is contained in:
@@ -76,14 +76,8 @@ enum fopAc_Cull_e {
|
||||
fopAc_CULLSPHERE_5_e,
|
||||
fopAc_CULLSPHERE_6_e,
|
||||
fopAc_CULLSPHERE_7_e,
|
||||
fopAc_CULLSPHERE_8_e,
|
||||
fopAc_CULLSPHERE_9_e,
|
||||
fopAc_CULLSPHERE_10_e,
|
||||
fopAc_CULLSPHERE_11_e,
|
||||
fopAc_CULLSPHERE_12_e,
|
||||
fopAc_CULLSPHERE_13_e,
|
||||
#ifdef DEBUG
|
||||
fopAc_CULLSPHERE_14_e,
|
||||
fopAc_CULLSPHERE_8_e,
|
||||
#endif
|
||||
fopAc_CULLSPHERE_CUSTOM_e,
|
||||
};
|
||||
|
||||
@@ -402,6 +402,14 @@ inline int fopAcM_GetCullSize(const fopAc_ac_c* i_actor) {
|
||||
return i_actor->cullType;
|
||||
}
|
||||
|
||||
inline int fopAcM_CULLSIZE_IDX(int i_culltype) {
|
||||
return i_culltype - fopAc_CULLBOX_0_e;
|
||||
}
|
||||
|
||||
inline int fopAcM_CULLSIZE_Q_IDX(int i_culltype) {
|
||||
return i_culltype - fopAc_CULLSPHERE_0_e;
|
||||
}
|
||||
|
||||
inline BOOL fopAcM_CULLSIZE_IS_BOX(int i_culltype) {
|
||||
return (i_culltype >= 0 && i_culltype < fopAc_CULLBOX_CUSTOM_e) ||
|
||||
i_culltype == fopAc_CULLBOX_CUSTOM_e;
|
||||
|
||||
Reference in New Issue
Block a user