majyuu door inlines

This commit is contained in:
LagoLunatic
2026-07-30 17:17:14 -04:00
parent 32cd6f7080
commit 2bebe68302
2 changed files with 4 additions and 8 deletions
+2
View File
@@ -58,6 +58,8 @@ class daObj_MjDoorHIO_c : public mDoHIO_entry_c {
public:
daObj_MjDoorHIO_c();
void genMessage(JORMContext* ctx) {}
public:
/* 0x4 */ u8 field_0x4;
};
+2 -8
View File
@@ -220,7 +220,7 @@ void daObj_MjDoor_c::modeDeleteInit() {
}
mMode = MODE_DELETE;
mDoAud_seStart(JA_SE_OBJ_MJ_GATE_BREAK, &eyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(this)));
fopAcM_seStart(this, JA_SE_OBJ_MJ_GATE_BREAK, 0);
cXyz scale(1.0f, 1.0f, 1.0f);
dComIfGp_particle_set(dPa_name::ID_IT_SN_MJMON_HAHEN_L00, &current.pos, &current.angle,
@@ -256,13 +256,7 @@ void daObj_MjDoor_c::modeDelete() {
if (mSmoke.getEmitter() != NULL) {
if (cLib_calcTimer(&mSmokeTimer) != 0) {
if (mSmokeTimer <= 40) {
#if VERSION == VERSION_DEMO
u8 colorAlpha = mSmokeTimer * 5;
mSmoke.getEmitter()->mGlobalPrmColor.a = colorAlpha;
#else
JPABaseEmitter* emitter = mSmoke.getEmitter();
emitter->mGlobalPrmColor.a = mSmokeTimer * 5;
#endif
mSmoke.getEmitter()->setGlobalAlpha(mSmokeTimer * 5);
}
} else {
mSmoke.end();