Files
dusklight/src/SSystem/SComponent/c_bg_s_chk.cpp
T
TakaRikka dfa8efa97b project cleanup (#2895)
* some wii OS fixes

* remove old dol2asm comments

* remove dol2asm.h

* remove function address comments

* normalize ATTRIBUTE_ALIGN usage

* DECL_WEAK macro

* fix gcc attribute weak macro

* wrap more mwcc specific things in ifdefs

* fixes

* fix revo sdk version flags

* fixes
2025-11-30 15:23:42 -07:00

33 lines
705 B
C++

/**
* c_bg_s_chk.cpp
*
*/
#include "SSystem/SComponent/c_bg_s_chk.h"
#include "f_pc/f_pc_manager.h"
cBgS_Chk::cBgS_Chk() {
mPolyPassChk = NULL;
mGrpPassChk = NULL;
mSameActorChk = true;
}
cBgS_Chk::~cBgS_Chk() {}
void cBgS_Chk::SetExtChk(cBgS_Chk& other) {
mPolyPassChk = other.mPolyPassChk;
mGrpPassChk = other.mGrpPassChk;
mActorPid = other.mActorPid;
mSameActorChk = other.mSameActorChk;
}
bool cBgS_Chk::ChkSameActorPid(fpc_ProcID pid) const {
if (mActorPid == fpcM_ERROR_PROCESS_ID_e || pid == fpcM_ERROR_PROCESS_ID_e || !mSameActorChk) {
return FALSE;
} else if (mActorPid == pid) {
return TRUE;
} else {
return FALSE;
}
}