Clean up code for various actors

This commit is contained in:
LagoLunatic
2023-10-29 02:07:52 -04:00
parent ba28e8e9ac
commit 2c907c8a21
17 changed files with 116 additions and 118 deletions
+2 -2
View File
@@ -1299,14 +1299,14 @@ static BOOL useHeapInit(fopAc_ac_c* i_actor) {
i_this->mpBtkAnm = new mDoExt_btkAnm();
if (!i_this->mpBtkAnm) { return FALSE; }
J3DAnmTextureSRTKey* pbtk = (J3DAnmTextureSRTKey*)dComIfG_getObjectRes("AM2", AM2_BTK_AM2);
int ret = i_this->mpBtkAnm->init(model->getModelData(), pbtk, TRUE, 2, 1.0, 0, -1, false, 0);
int ret = i_this->mpBtkAnm->init(model->getModelData(), pbtk, TRUE, 2, 1.0f, 0, -1, false, 0);
if (!ret) { return FALSE; }
if (!i_this->mpBtkAnm) { return FALSE; }
i_this->mpBrkAnm = new mDoExt_brkAnm();
if (!i_this->mpBrkAnm) { return FALSE; }
J3DAnmTevRegKey* pbrk = (J3DAnmTevRegKey*)dComIfG_getObjectRes("AM2", AM2_BRK_AM2);
ret = i_this->mpBrkAnm->init(model->getModelData(), pbrk, TRUE, 2, 1.0, 0, -1, false, 0);
ret = i_this->mpBrkAnm->init(model->getModelData(), pbrk, TRUE, 2, 1.0f, 0, -1, false, 0);
if (!ret) { return FALSE; }
if (!i_this->mpBrkAnm) { return FALSE; }