mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-04 17:09:45 -04:00
majyuu door inlines
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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, ¤t.pos, ¤t.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();
|
||||
|
||||
Reference in New Issue
Block a user