mirror of
https://github.com/zeldaret/tww.git
synced 2026-07-06 13:11:05 -04:00
Improve compiler compatibility (#743)
* fix returns * use standard C headers * struct/class mismatch * explicit this in template * switch variable scope * C standard compliance * & l-value
This commit is contained in:
@@ -91,10 +91,10 @@ BOOL daPy_lk_c::checkNextActionBoomerangReady() {
|
||||
/* 8014984C-801498D8 .text checkNextActionBoomerangFly__9daPy_lk_cFv */
|
||||
BOOL daPy_lk_c::checkNextActionBoomerangFly() {
|
||||
if (checkBoomerangReadyAnime()) {
|
||||
checkNextActionBoomerangReady();
|
||||
return checkNextActionBoomerangReady();
|
||||
} else {
|
||||
if (itemTrigger() && mEquipItem == getReadyItem()) {
|
||||
setActAnimeUpper(
|
||||
return setActAnimeUpper(
|
||||
LKANM_BCK_BOOMWAIT,
|
||||
UPPER_MOVE2_e,
|
||||
daPy_HIO_boom_c0::m.field_0x18,
|
||||
@@ -112,9 +112,9 @@ BOOL daPy_lk_c::checkNextBoomerangMode() {
|
||||
seStartOnlyReverb(JA_SE_LK_ITEM_TAKEOUT);
|
||||
}
|
||||
if (mpAttention->Lockon()) {
|
||||
procBoomerangMove_init();
|
||||
return procBoomerangMove_init();
|
||||
} else {
|
||||
procBoomerangSubject_init();
|
||||
return procBoomerangSubject_init();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ void daPy_lk_c::setBottleModel(u16 param_0) {
|
||||
fopAc_ac_c* daPy_lk_c::makeFairy(cXyz* param_0, u32 param_1) {
|
||||
onResetFlg0(daPyRFlg0_FAIRY_USE);
|
||||
resetCurse();
|
||||
fopAcM_fastCreate(PROC_NPC_FA1, param_1, param_0, fopAcM_GetRoomNo(this), &shape_angle);
|
||||
return (fopAc_ac_c*)fopAcM_fastCreate(PROC_NPC_FA1, param_1, param_0, fopAcM_GetRoomNo(this), &shape_angle);
|
||||
}
|
||||
|
||||
/* 801521A0-80152300 .text procBottleDrink_init__9daPy_lk_cFUs */
|
||||
|
||||
@@ -187,9 +187,9 @@ BOOL daPy_lk_c::checkNextHookshotMode() {
|
||||
seStartOnlyReverb(JA_SE_LK_ITEM_TAKEOUT);
|
||||
}
|
||||
if (mpAttention->Lockon()) {
|
||||
procHookshotMove_init();
|
||||
return procHookshotMove_init();
|
||||
} else {
|
||||
procHookshotSubject_init();
|
||||
return procHookshotSubject_init();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ f32 daPy_lk_c::checkRopeRoofHit(s16 param_0) {
|
||||
|
||||
local_c.set(current.pos.x - 15.0f * cM_ssin(param_0), current.pos.y, current.pos.z - 15.0f * cM_scos(param_0));
|
||||
mRoofChk.SetPos(local_c);
|
||||
dComIfG_Bgsp()->RoofChk(&mRoofChk);
|
||||
return dComIfG_Bgsp()->RoofChk(&mRoofChk);
|
||||
}
|
||||
|
||||
/* 80142E98-80142FC8 .text changeRopeSwingProc__9daPy_lk_cFv */
|
||||
@@ -317,9 +317,9 @@ BOOL daPy_lk_c::checkNextRopeMode() {
|
||||
seStartOnlyReverb(JA_SE_LK_ITEM_TAKEOUT);
|
||||
}
|
||||
if (mpAttention->Lockon()) {
|
||||
procRopeMove_init();
|
||||
return procRopeMove_init();
|
||||
} else {
|
||||
procRopeSubject_init();
|
||||
return procRopeSubject_init();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -2276,7 +2276,7 @@ void dCamera_c::checkGroundInfo() {
|
||||
|
||||
/* 8016A0F0-8016A110 .text followCamera2__9dCamera_cFl */
|
||||
bool dCamera_c::followCamera2(s32 param_0) {
|
||||
followCamera(param_0);
|
||||
return followCamera(param_0);
|
||||
}
|
||||
|
||||
/* 8016A110-8016C4F8 .text followCamera__9dCamera_cFl */
|
||||
|
||||
+4
-2
@@ -624,7 +624,7 @@ bool dMesg_tSequenceProcessor::do_tag(u32 param_1, const void* param_2, u32 para
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 0x10000:
|
||||
case 0x10000: {
|
||||
u16 r24 = param_1 & 0xFFFF;
|
||||
s8 tmp = dComIfGp_getReverb(dComIfGp_roomControl_getStayNo());
|
||||
if (r24 == 8) {
|
||||
@@ -634,6 +634,7 @@ bool dMesg_tSequenceProcessor::do_tag(u32 param_1, const void* param_2, u32 para
|
||||
}
|
||||
r29 = true;
|
||||
break;
|
||||
}
|
||||
case 0x20000:
|
||||
dComIfGp_setMesgCameraTagInfo(u16(param_1));
|
||||
r29 = true;
|
||||
@@ -1552,7 +1553,8 @@ void dMesg_screenDataItem_c::createScreen() {
|
||||
J2DPane* pane = field_0x1b4.pane;
|
||||
f32 y = (field_0x1b4.mSize.y * 0.5f + pane->mScreenBounds.i.y - 240.0f) - 10.0f;
|
||||
f32 x = (field_0x1b4.mSize.x * 0.5f + pane->mScreenBounds.i.x - 320.0f) + 10.0f;
|
||||
field_0x3e4 = dComIfGp_particle_set2Dfore(0x2e1, &cXyz(x, y, 0.0f));
|
||||
cXyz pos(x, y, 0.0f);
|
||||
field_0x3e4 = dComIfGp_particle_set2Dfore(0x2e1, &pos);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#include "dolphin/types.h"
|
||||
|
||||
class J2DTextBox;
|
||||
class fopMsgM_pane_class;
|
||||
struct fopMsgM_pane_class;
|
||||
|
||||
J2DPicture* button_icon[8];
|
||||
J2DPicture* button_kage[8];
|
||||
|
||||
Reference in New Issue
Block a user