mirror of
https://github.com/zeldaret/tp
synced 2026-07-09 14:55:32 -04:00
Fix type signatures of cLib_*Bit functions (#2024)
This commit is contained in:
@@ -14,11 +14,11 @@ u8 daItemBase_c::getItemNo() {
|
||||
}
|
||||
|
||||
void daItemBase_c::hide() {
|
||||
cLib_offBit(field_0x92b, 1);
|
||||
cLib_offBit<u8>(field_0x92b, 1);
|
||||
}
|
||||
|
||||
void daItemBase_c::show() {
|
||||
cLib_onBit(field_0x92b, 1);
|
||||
cLib_onBit<u8>(field_0x92b, 1);
|
||||
}
|
||||
|
||||
void daItemBase_c::changeDraw() {
|
||||
@@ -30,15 +30,15 @@ void daItemBase_c::changeDraw() {
|
||||
}
|
||||
|
||||
u8 daItemBase_c::chkDraw() {
|
||||
return cLib_checkBit(field_0x92b, 1) != 0;
|
||||
return cLib_checkBit<u8>(field_0x92b, 1) != 0;
|
||||
}
|
||||
|
||||
void daItemBase_c::dead() {
|
||||
cLib_onBit(field_0x92b, 2);
|
||||
cLib_onBit<u8>(field_0x92b, 2);
|
||||
}
|
||||
|
||||
u8 daItemBase_c::chkDead() {
|
||||
return cLib_checkBit(field_0x92b, 2) != 0;
|
||||
return cLib_checkBit<u8>(field_0x92b, 2) != 0;
|
||||
}
|
||||
|
||||
/* 80037B0C-80037B78 03244C 006C+00 0/0 0/0 1/1 .text CheckItemCreateHeap__FP10fopAc_ac_c
|
||||
|
||||
+2
-2
@@ -26,7 +26,7 @@ void dInsect_c::Insect_GetDemoMain() {
|
||||
switch (m_mode) {
|
||||
case 0:
|
||||
if (fopAcM_checkCarryNow(this)) {
|
||||
cLib_offBit(mAttentionInfo.mFlags, 0x10);
|
||||
cLib_offBit<u32>(mAttentionInfo.mFlags, 0x10);
|
||||
fopAcM_cancelCarryNow(this);
|
||||
fopAcM_orderItemEvent(this, 0, 0);
|
||||
mEvtInfo.i_onCondition(dEvtCnd_CANGETITEM_e);
|
||||
@@ -39,7 +39,7 @@ void dInsect_c::Insect_GetDemoMain() {
|
||||
field_0x585 = 1;
|
||||
}
|
||||
} else {
|
||||
cLib_onBit(mAttentionInfo.mFlags, 0x10);
|
||||
cLib_onBit<u32>(mAttentionInfo.mFlags, 0x10);
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
|
||||
+2
-2
@@ -160,7 +160,7 @@ void dTres_c::onStatus(u8 listIdx, int param_1, int flag) {
|
||||
if (param_1 == groupData->getNo()) {
|
||||
u8 status = groupData->getStatus();
|
||||
|
||||
cLib_onBit(status, flag);
|
||||
cLib_onBit<u8>(status, flag);
|
||||
groupData->setStatus(status);
|
||||
}
|
||||
groupData = getNextData(groupData);
|
||||
@@ -176,7 +176,7 @@ void dTres_c::offStatus(u8 listIdx, int param_1, int flag) {
|
||||
if (param_1 == groupData->getNo()) {
|
||||
u8 status = groupData->getStatus();
|
||||
|
||||
cLib_offBit(status, flag);
|
||||
cLib_offBit<u8>(status, flag);
|
||||
groupData->setStatus(status);
|
||||
}
|
||||
groupData = getNextData(groupData);
|
||||
|
||||
Reference in New Issue
Block a user