mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-20 13:45:14 -04:00
Replace particle enums with official names
This commit is contained in:
@@ -91,7 +91,7 @@ void daMdoor_c::calcMtx() {
|
||||
|
||||
/* 0000029C-00000344 .text smokeInit__9daMdoor_cFv */
|
||||
void daMdoor_c::smokeInit() {
|
||||
JPABaseEmitter* emitter = dComIfGp_particle_set(dPa_name::ID_COMMON_2022, ¤t.pos, &shape_angle, NULL, 0xAA, &m290, fopAcM_GetRoomNo(this));
|
||||
JPABaseEmitter* emitter = dComIfGp_particle_set(dPa_name::ID_AK_JT_ELEMENTSMOKE00, ¤t.pos, &shape_angle, NULL, 0xAA, &m290, fopAcM_GetRoomNo(this));
|
||||
if (emitter != NULL) {
|
||||
emitter->setRate(16.0f);
|
||||
emitter->setSpread(0.35f);
|
||||
@@ -216,7 +216,7 @@ void daMdoor_c::demoProc() {
|
||||
case 2:
|
||||
speedF = 0.0f;
|
||||
if (getShapeType() != 1) {
|
||||
dComIfGp_particle_set(dPa_name::ID_SCENE_81B2, ¤t.pos, ¤t.angle);
|
||||
dComIfGp_particle_set(dPa_name::ID_AK_SN_WOODCAGE00, ¤t.pos, ¤t.angle);
|
||||
}
|
||||
fopAcM_seStart(this, JA_SE_OBJ_CAGE_OPEN, 0);
|
||||
break;
|
||||
@@ -231,7 +231,7 @@ void daMdoor_c::demoProc() {
|
||||
if (chkFlag(1)) {
|
||||
clrFlag(1);
|
||||
if (getShapeType() != 1) {
|
||||
dComIfGp_particle_set(dPa_name::ID_SCENE_81B2, ¤t.pos, ¤t.angle);
|
||||
dComIfGp_particle_set(dPa_name::ID_AK_SN_WOODCAGE00, ¤t.pos, ¤t.angle);
|
||||
}
|
||||
smokeInit();
|
||||
}
|
||||
@@ -311,7 +311,7 @@ BOOL daMdoor_actionOpen(daMdoor_c* i_this) {
|
||||
if (i_this->m2C4 == 0) {
|
||||
i_this->speedF = 0.0f;
|
||||
if (i_this->getShapeType() != 1) {
|
||||
dComIfGp_particle_set(dPa_name::ID_SCENE_81B2, &i_this->current.pos, &i_this->current.angle);
|
||||
dComIfGp_particle_set(dPa_name::ID_AK_SN_WOODCAGE00, &i_this->current.pos, &i_this->current.angle);
|
||||
}
|
||||
fopAcM_seStart(i_this, JA_SE_OBJ_CAGE_OPEN, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user