mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-25 07:02:47 -04:00
get farther
This commit is contained in:
@@ -15,7 +15,7 @@ u32 J3DShapeDraw::countVertex(u32 stride) {
|
||||
dl++;
|
||||
if (cmd != GX_TRIANGLEFAN && cmd != GX_TRIANGLESTRIP)
|
||||
break;
|
||||
int vtxNum = *((u16*)(dl));
|
||||
int vtxNum = be16(*((u16*)(dl)));
|
||||
dl += 2;
|
||||
count += vtxNum;
|
||||
dl = (u8*)dl + stride * vtxNum;
|
||||
@@ -48,7 +48,7 @@ void J3DShapeDraw::addTexMtxIndexInDL(u32 stride, u32 attrOffs, u32 valueBase) {
|
||||
*(u16*)newDL = vtxNum;
|
||||
newDL += 2;
|
||||
|
||||
for (int i = 0; i < vtxNum; i++) {
|
||||
for (int i = 0; i < be16(vtxNum); i++) {
|
||||
u8* oldDLVtx = &oldDL[stride * i];
|
||||
u8 pnmtxidx = *oldDLVtx;
|
||||
memcpy(newDL, oldDLVtx, (int)attrOffs);
|
||||
|
||||
@@ -4857,7 +4857,7 @@ int daAlink_c::create() {
|
||||
|
||||
dComIfGp_setPlayer(0, this);
|
||||
dComIfGp_setLinkPlayer(this);
|
||||
fopAcM_setStageLayer(this);
|
||||
fopAcM_setStageLayer(&base);
|
||||
|
||||
if (sceneMode == 7) {
|
||||
current.pos = dComIfGs_getTurnRestartPos();
|
||||
|
||||
@@ -350,7 +350,7 @@ int daGrass_c::create() {
|
||||
}
|
||||
|
||||
m_myObj = this;
|
||||
fopAcM_setStageLayer(this);
|
||||
fopAcM_setStageLayer(&base);
|
||||
return cPhs_COMPLEATE_e;
|
||||
}
|
||||
|
||||
@@ -406,7 +406,7 @@ actor_process_profile_definition g_profile_GRASS = {
|
||||
fpcPi_CURRENT_e, // mListPrio
|
||||
PROC_GRASS, // mProcName
|
||||
&g_fpcLf_Method.base, // sub_method
|
||||
0x00000570, // mSize
|
||||
sizeof(daGrass_c), // mSize
|
||||
0, // mSizeOther
|
||||
0, // mParameters
|
||||
&g_fopAc_Method.base, // sub_method
|
||||
|
||||
@@ -1686,7 +1686,7 @@ actor_process_profile_definition g_profile_FSHOP = {
|
||||
fpcPi_CURRENT_e, // mListPrio
|
||||
PROC_FSHOP, // mProcName
|
||||
&g_fpcLf_Method.base, // sub_method
|
||||
0x00006B80, // mSize
|
||||
sizeof(fshop_class), // mSize
|
||||
0, // mSizeOther
|
||||
0, // mParameters
|
||||
&g_fopAc_Method.base, // sub_method
|
||||
|
||||
@@ -5225,7 +5225,7 @@ actor_process_profile_definition g_profile_NPC_WRESTLER = {
|
||||
fpcPi_CURRENT_e, // mListPrio
|
||||
PROC_NPC_WRESTLER, // mProcName
|
||||
&g_fpcLf_Method.base, // sub_method
|
||||
0xEA0, // mSize (fix this)
|
||||
sizeof(daNpcWrestler_c), // mSize (fix this)
|
||||
0, // mSizeOther
|
||||
0, // mParameters
|
||||
&g_fopAc_Method.base, // sub_method
|
||||
|
||||
@@ -618,7 +618,7 @@ actor_process_profile_definition g_profile_Obj_VolcanicBall = {
|
||||
fpcPi_CURRENT_e, // mListPrio
|
||||
PROC_Obj_VolcanicBall, // mProcName
|
||||
&g_fpcLf_Method.base, // sub_method
|
||||
0x00002928, // mSize
|
||||
sizeof(daObjVolcBall_c), // mSize
|
||||
0, // mSizeOther
|
||||
0, // mParameters
|
||||
&g_fopAc_Method.base, // sub_method
|
||||
|
||||
Reference in New Issue
Block a user