mirror of
https://github.com/zeldaret/oot.git
synced 2025-01-15 21:07:15 +00:00
Changed unk_192 to timer, as well as add missing trailing comma for formating (#817)
This commit is contained in:
parent
d9a4a2079d
commit
c9ee9e43bd
2 changed files with 21 additions and 19 deletions
|
@ -26,23 +26,25 @@ const ActorInit En_M_Fire1_InitVars = {
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
static ColliderCylinderInit sCylinderInit = { {
|
static ColliderCylinderInit sCylinderInit = {
|
||||||
COLTYPE_NONE,
|
{
|
||||||
AT_ON | AT_TYPE_PLAYER,
|
COLTYPE_NONE,
|
||||||
AC_NONE,
|
AT_ON | AT_TYPE_PLAYER,
|
||||||
OC1_NONE,
|
AC_NONE,
|
||||||
OC2_TYPE_PLAYER,
|
OC1_NONE,
|
||||||
COLSHAPE_CYLINDER,
|
OC2_TYPE_PLAYER,
|
||||||
},
|
COLSHAPE_CYLINDER,
|
||||||
{
|
},
|
||||||
ELEMTYPE_UNK2,
|
{
|
||||||
{ 0x00000001, 0x00, 0x00 },
|
ELEMTYPE_UNK2,
|
||||||
{ 0xFFCFFFFF, 0x00, 0x00 },
|
{ 0x00000001, 0x00, 0x00 },
|
||||||
TOUCH_ON | TOUCH_SFX_NONE,
|
{ 0xFFCFFFFF, 0x00, 0x00 },
|
||||||
BUMP_NONE,
|
TOUCH_ON | TOUCH_SFX_NONE,
|
||||||
OCELEM_NONE,
|
BUMP_NONE,
|
||||||
},
|
OCELEM_NONE,
|
||||||
{ 200, 200, 0, { 0 } } };
|
},
|
||||||
|
{ 200, 200, 0, { 0 } },
|
||||||
|
};
|
||||||
|
|
||||||
void EnMFire1_Init(Actor* thisx, GlobalContext* globalCtx) {
|
void EnMFire1_Init(Actor* thisx, GlobalContext* globalCtx) {
|
||||||
EnMFire1* this = THIS;
|
EnMFire1* this = THIS;
|
||||||
|
@ -66,7 +68,7 @@ void EnMFire1_Update(Actor* thisx, GlobalContext* globalCtx) {
|
||||||
EnMFire1* this = THIS;
|
EnMFire1* this = THIS;
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
|
||||||
if (Math_StepToF(&this->unk_198, 1.0f, 0.2f)) {
|
if (Math_StepToF(&this->timer, 1.0f, 0.2f)) {
|
||||||
Actor_Kill(&this->actor);
|
Actor_Kill(&this->actor);
|
||||||
} else {
|
} else {
|
||||||
Collider_UpdateCylinder(&this->actor, &this->collider);
|
Collider_UpdateCylinder(&this->actor, &this->collider);
|
||||||
|
|
|
@ -9,7 +9,7 @@ struct EnMFire1;
|
||||||
typedef struct EnMFire1 {
|
typedef struct EnMFire1 {
|
||||||
/* 0x0000 */ Actor actor;
|
/* 0x0000 */ Actor actor;
|
||||||
/* 0x014C */ ColliderCylinder collider;
|
/* 0x014C */ ColliderCylinder collider;
|
||||||
/* 0x0198 */ f32 unk_198;
|
/* 0x0198 */ f32 timer;
|
||||||
} EnMFire1; // size = 0x019C
|
} EnMFire1; // size = 0x019C
|
||||||
|
|
||||||
extern const ActorInit En_M_Fire1_InitVars;
|
extern const ActorInit En_M_Fire1_InitVars;
|
||||||
|
|
Loading…
Reference in a new issue