mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-27 01:55:15 -04:00
Use resource enums for all other old actors
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
//
|
||||
|
||||
#include "d/actor/d_a_obj_Vteng.h"
|
||||
#include "d/res/res_vteng.h"
|
||||
#include "f_op/f_op_actor_mng.h"
|
||||
#include "JSystem/JUtility/JUTAssert.h"
|
||||
#include "d/d_bg_w.h"
|
||||
@@ -35,8 +36,8 @@ BOOL daObjVteng_c::solidHeapCB(fopAc_ac_c* i_this) {
|
||||
bool daObjVteng_c::create_heap() {
|
||||
bool ret = true;
|
||||
|
||||
J3DModelData* pModelData = static_cast<J3DModelData*>(dComIfG_getObjectRes(l_arcname, 0x08));
|
||||
J3DAnmTransform * pAnm = (J3DAnmTransform *)dComIfG_getObjectRes(l_arcname, 0x05);
|
||||
J3DModelData* pModelData = static_cast<J3DModelData*>(dComIfG_getObjectRes(l_arcname, VTENG_BDL_VTENG));
|
||||
J3DAnmTransform * pAnm = (J3DAnmTransform *)dComIfG_getObjectRes(l_arcname, VTENG_BCK_VTENG);
|
||||
|
||||
if (!pModelData || !pAnm) {
|
||||
JUT_ASSERT(0xb7, 0);
|
||||
@@ -56,7 +57,7 @@ bool daObjVteng_c::create_heap() {
|
||||
} else {
|
||||
J3DModel * model = mpMorf->getModel();
|
||||
mpModel = model;
|
||||
mpBgW = dBgW_NewSet((cBgD_t*)dComIfG_getObjectRes(l_arcname, 0x0B), cBgW::MOVE_BG_e, &mtx);
|
||||
mpBgW = dBgW_NewSet((cBgD_t*)dComIfG_getObjectRes(l_arcname, VTENG_DZB_VTENG), cBgW::MOVE_BG_e, &mtx);
|
||||
if (!mpBgW)
|
||||
ret = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user