Process IDs cleanup

* Use fpcM_ERROR_PROCESS_ID_e enum instead of literal -1/0xFFFFFFFF everywhere
* Disambiguate variable names by using itemNo/msgNo instead of itemID/msgID
This commit is contained in:
LagoLunatic
2023-11-22 16:25:28 -05:00
parent 906c8a8314
commit 469f243030
28 changed files with 132 additions and 129 deletions
+2 -2
View File
@@ -4,7 +4,7 @@
//
#include "SSystem/SComponent/c_bg_s_chk.h"
#include "dolphin/types.h"
#include "f_pc/f_pc_manager.h"
/* 80247304-8024734C .text __dt__8cBgS_ChkFv */
cBgS_Chk::~cBgS_Chk() {
@@ -12,7 +12,7 @@ cBgS_Chk::~cBgS_Chk() {
/* 8024734C-8024738C .text ChkSameActorPid__8cBgS_ChkCFUi */
bool cBgS_Chk::ChkSameActorPid(unsigned int pid) const {
if (mActorPid == -1 || pid == UINT32_MAX || unk_0x0C == 0) {
if (mActorPid == fpcM_ERROR_PROCESS_ID_e || pid == UINT32_MAX || unk_0x0C == 0) {
return 0;
} else {
return (mActorPid == pid) ? 1 : 0;