Fix arguments for model00018680
This commit is contained in:
parent
3d8e55ab9f
commit
9c014e2daa
|
|
@ -8,7 +8,7 @@ extern bool (*var8005efc4)(struct model *model, struct modelnode *node);
|
|||
extern struct gfxvtx *(*g_ModelVtxAllocatorFunc)(s32 numvertices);
|
||||
extern void (*g_ModelJointPositionedFunc)(s32 mtxindex, Mtxf *mtx);
|
||||
|
||||
bool model00018680(void);
|
||||
bool model00018680(struct modelrenderdata *renderdata, struct model *model);
|
||||
void modelSetDistanceScale(f32 value);
|
||||
void modelSetVtxAllocatorFunc(struct gfxvtx *(*fn)(s32 numvertices));
|
||||
s32 model0001a524(struct modelnode *node, s32 arg1);
|
||||
|
|
|
|||
|
|
@ -1469,19 +1469,19 @@ void model0001cd18(struct modelrenderdata *arg0, struct model *model)
|
|||
}
|
||||
}
|
||||
|
||||
void model0001ce64(struct modelrenderdata *arg0, struct model *model)
|
||||
void model0001ce64(struct modelrenderdata *renderdata, struct model *model)
|
||||
{
|
||||
model->matrices = arg0->unk10;
|
||||
model->matrices = renderdata->unk10;
|
||||
|
||||
arg0->unk10 += model->filedata->nummatrices;
|
||||
renderdata->unk10 += model->filedata->nummatrices;
|
||||
|
||||
#if VERSION >= VERSION_PAL_BETA
|
||||
if (var8005efb0_2 || !model00018680()) {
|
||||
model0001cd18(arg0, model);
|
||||
if (var8005efb0_2 || !model00018680(renderdata, model)) {
|
||||
model0001cd18(renderdata, model);
|
||||
}
|
||||
#else
|
||||
if (!model00018680()) {
|
||||
model0001cd18(arg0, model);
|
||||
if (!model00018680(renderdata, model)) {
|
||||
model0001cd18(renderdata, model);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue