d_a_knob00 (#823)

* d_a_knob00

* PR
This commit is contained in:
Maide
2025-07-28 23:44:12 +01:00
committed by GitHub
parent 7a30896825
commit 8ee539cdbc
6 changed files with 876 additions and 122 deletions
+5 -25
View File
@@ -145,18 +145,8 @@ void daObjHhaPart_c::init_mtx(cXyz currentPos, csXyz shapeAngle, cXyz scale) {
void daObjHhaPart_c::exe_normal(daObjHha_c* parent) {
init_mtx(parent->current.pos, parent->shape_angle, parent->scale);
bool doMove;
if(mpBgw != NULL){
if(0 <= mpBgw->GetId() && mpBgw->GetId() < 0x100){
doMove = true;
}
else {
doMove = false;
}
if(doMove){
mpBgw->Move();
}
if (mpBgw != NULL && mpBgw->ChkUsed()) {
mpBgw->Move();
}
}
@@ -382,21 +372,11 @@ bool daObjHha_c::_delete() {
#endif
for(i = 0; i < 2; i++){
cBgW* bgw = mPartA[i].mpBgw;
if(bgw != NULL){
bool toErase;
if(bgw->GetId() >= 0 && bgw->GetId() < 0x100){
toErase = true;
}
else {
toErase = false;
}
if(toErase){
dComIfG_Bgsp()->Release(bgw);
if(bgw != NULL && bgw->ChkUsed()) {
dComIfG_Bgsp()->Release(bgw);
#if VERSION > VERSION_DEMO
mPartA[i].mpBgw = NULL;
mPartA[i].mpBgw = NULL;
#endif
}
}
}
#if VERSION > VERSION_DEMO