summaryrefslogtreecommitdiff
path: root/src/d/d_bg_w_deform.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2024-02-10 19:47:09 -0500
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2024-02-10 19:47:09 -0500
commit246573f1311febef93e07bddaeb901f8cd951450 (patch)
treeb85b95462690d1900f912c54db2e183c5b6af6d3 /src/d/d_bg_w_deform.cpp
parent256665d6c1f906053937c6d76c3c49bcd705fd33 (diff)
d_bg_w_sv OK
Diffstat (limited to 'src/d/d_bg_w_deform.cpp')
-rw-r--r--src/d/d_bg_w_deform.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/d/d_bg_w_deform.cpp b/src/d/d_bg_w_deform.cpp
index 0f64eb0e..e89b752d 100644
--- a/src/d/d_bg_w_deform.cpp
+++ b/src/d/d_bg_w_deform.cpp
@@ -13,17 +13,17 @@ bool dBgWDeform::Set(cBgD_t* bgd, J3DModel* pmodel, u32 r30) {
if (cBgW::Set(bgd, 0x33, NULL)) {
return true;
}
- mBC = r30;
+ SetFlag(r30);
if (pmodel->setSkinDeform(this, 1) == J3DErrType_OutOfMemory) {
return true;
}
pmodel->offFlag(J3DMdlFlag_SkinNrmCpu);
pmodel->onFlag(J3DMdlFlag_SkinPosCpu);
- if (mBC & 1) {
+ if (ChkNoCrrPos()) {
return false;
}
- mC0 = new Vec[pm_bgd->m_v_num];
- if (mC0 == NULL) {
+ SetBackVtx(new Vec[pm_bgd->m_v_num]);
+ if (GetBackVtx() == NULL) {
return true;
}
return false;