Several fixes

name of hook variable in HsfObjectData, staticness of XFB_Geometry, default type of object work, staticness and name of commentTbl are all fixed
This commit is contained in:
gamemasterplc 2024-02-10 16:06:13 -06:00
parent a276a37302
commit 58fe346b72
9 changed files with 14 additions and 14 deletions

View file

@ -119,7 +119,7 @@ void ClusterProc(ModelData *arg0) {
temp_r31 = temp_r23->object;
temp_r31 += var_r29->target;
Vertextop = temp_r31->data.vertex->data;
if (temp_r31->data.hook) {
if (temp_r31->data.cenvCnt) {
for (k = 0; k < temp_r31->data.vertex->count; k++) {
Vertextop[k].x = ((Vec*) temp_r31->data.file[0])[k].x;
Vertextop[k].y = ((Vec*) temp_r31->data.file[0])[k].y;

View file

@ -179,7 +179,7 @@ static void SetEnvelopMain(HsfData *arg0) {
normtop = var_r31->data.file[1];
normenv = temp_r28->data;
var_r25 = var_r31->data.cenv;
for (j = 0; j < var_r31->data.hook; j++, var_r25++) {
for (j = 0; j < var_r31->data.cenvCnt; j++, var_r25++) {
SetEnvelop(var_r25);
}
sp10 = temp_r30->data;

View file

@ -25,7 +25,7 @@ static RGBColor XFB_Colors[5] = {
#include "Ascii8x8_1bpp.inc"
XFBGeometry XFB_Geometry;
static XFBGeometry XFB_Geometry;
static s32 (*XFB_putc)(u8 c, s32 x, s32 y);

View file

@ -240,7 +240,7 @@ static void objMesh(ModelData *arg0, HsfObject *arg1) {
temp_r25 = arg1->constData;
if (!(temp_r25->flags & 0x1000)) {
if (CancelTRXF == 0) {
if (arg1->data.hook != 0 && hookIdx == -1) {
if (arg1->data.cenvCnt != 0 && hookIdx == -1) {
temp_r21 = arg1 - temp_r20->object;
PSMTXConcat(MTXBuf[0], temp_r20->matrix->data[temp_r21 + temp_r20->matrix->base_idx], MTXBuf[MTXIdx]);
} else {
@ -2770,7 +2770,7 @@ static s32 MakeCalcNBT(HsfObject *arg0, HsfFace *arg1, s16 arg2, s16 arg3) {
temp_r27 = arg1->indices[arg2][1];
temp_r25 = arg1->indices[arg2][0];
temp_r24 = arg1->indices[arg3][0];
if (arg0->data.hook != 0) {
if (arg0->data.cenvCnt != 0) {
temp_r29 = arg0->data.normal->data;
sp10.x = temp_r29[temp_r27].x;
sp10.y = temp_r29[temp_r27].y;
@ -2801,7 +2801,7 @@ static s32 MakeNBT(HsfObject *arg0, HsfFace *arg1, s16 arg2, s16 arg3) {
spC = arg0->data.vertex->data;
temp_r28 = arg1->indices[arg2][1];
if (arg0->data.hook != 0) {
if (arg0->data.cenvCnt != 0) {
temp_r30 = arg0->data.normal->data;
sp10.x = temp_r30[temp_r28].x;
sp10.y = temp_r30[temp_r28].y;

View file

@ -3556,7 +3556,7 @@ void MGSeqPracticeExitCheck(omObjData *object)
s16 input;
s16 i;
mgQuitExtraF = 0;
if((u32)object->work[0] == 0) {
if(object->work[0] == 0) {
if(omMgIndexGet(omcurovl) == -1) {
omDelObjEx(HuPrcCurrentGet(), object);
return;

View file

@ -27,7 +27,7 @@ s32 saveExecF;
u8 curBoxNo;
s16 curSlotNo;
u8 saveComment[2][32] = {
static u8 commentTbl[2][32] = {
"Mario Party 4",
"File 0 00/00/0000"
};
@ -258,10 +258,10 @@ void SLSaveDataMake(s32 erase, OSTime *time) {
}
}
for (i = 0; i < 0x20; i++) {
buf[i] = (&saveComment[0][0])[i];
buf[i] = (&commentTbl[0][0])[i];
}
for (i = 0; i < 0x20; i++) {
(&buf[0x20])[i] = (&saveComment[0][0])[i+32];
(&buf[0x20])[i] = (&commentTbl[0][0])[i+32];
}
anim_data = HuSprAnimReadFile(WIN_CARD_BANNER_ANM);
memcpy(buf + offsetof(SaveBufData, banner), anim_data->bmp->data, CARD_BANNER_WIDTH*CARD_BANNER_HEIGHT);