use enums and inlines in more places

This commit is contained in:
LagoLunatic
2023-12-30 15:08:24 -05:00
parent 82b429b72f
commit 69444ef01e
25 changed files with 70 additions and 74 deletions
+2 -2
View File
@@ -57,7 +57,7 @@ static dCcD_SrcCps l_cps_src = {
BOOL daFan_c::Delete() {
dComIfG_resDelete(&mPhs, m_arcname[mType]);
dComIfG_resDelete(&mWindPhs, m_arcname2);
if (mWindSePId != -1) {
if (mWindSePId != fpcM_ERROR_PROCESS_ID_e) {
dLevelSe_c* se = (dLevelSe_c*)fopKyM_SearchByID(mWindSePId);
if (se != NULL)
fopKyM_Delete(se);
@@ -225,7 +225,7 @@ int daFan_c::Execute(Mtx** mtxP) {
mWindBtkAnm1.setPlaySpeed(-1.0f);
}
if (mWindSePId != -1) {
if (mWindSePId != fpcM_ERROR_PROCESS_ID_e) {
dLevelSe_c* se = (dLevelSe_c*)fopKyM_SearchByID(mWindSePId);
if (se != NULL)
se->setReverb(len * 100.0f, dComIfGp_getReverb(fopAcM_GetRoomNo(this)));