mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-03 02:53:08 -04:00
Work on create functions of d_a_npc_midp and changed mpMatAnm to array (#2366)
* Work on create functions of d_a_npc_midp and changed mpMatAnm to array * Pull request cleanup
This commit is contained in:
@@ -245,8 +245,8 @@ int daPeru_c::CreateHeap() {
|
||||
}
|
||||
|
||||
model->setUserArea((u32)this);
|
||||
mpMatAnm = new daNpcT_MatAnm_c();
|
||||
if (mpMatAnm == NULL) {
|
||||
mpMatAnm[0] = new daNpcT_MatAnm_c();
|
||||
if (mpMatAnm[0] == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -293,7 +293,7 @@ int daPeru_c::Execute() {
|
||||
|
||||
/* 80D477A4-80D47840 0009A4 009C+00 1/1 0/0 0/0 .text Draw__8daPeru_cFv */
|
||||
int daPeru_c::Draw() {
|
||||
daNpcT_MatAnm_c* matAnm = mpMatAnm;
|
||||
daNpcT_MatAnm_c* matAnm = mpMatAnm[0];
|
||||
if (matAnm != NULL) {
|
||||
J3DModelData* modelData = mpMorf[0]->getModel()->getModelData();
|
||||
u16 eyeballMat = getEyeballMaterialNo();
|
||||
@@ -351,8 +351,8 @@ void daPeru_c::reset() {
|
||||
field_0xa80 = daPeru_Param_c::m.field_0x64[2];
|
||||
mMorfFrames = daPeru_Param_c::m.field_0x00[17];
|
||||
mActionFunc = NULL;
|
||||
if (mpMatAnm != NULL) {
|
||||
mpMatAnm->initialize();
|
||||
if (mpMatAnm[0] != NULL) {
|
||||
mpMatAnm[0]->initialize();
|
||||
}
|
||||
field_0xe80 = 0;
|
||||
for (int i = 0; i < 3; i++) {
|
||||
|
||||
Reference in New Issue
Block a user