mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-11 03:39:59 +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,
|
||||
};
|
||||
|
||||
static ColliderCylinderInit sCylinderInit = { {
|
||||
COLTYPE_NONE,
|
||||
AT_ON | AT_TYPE_PLAYER,
|
||||
AC_NONE,
|
||||
OC1_NONE,
|
||||
OC2_TYPE_PLAYER,
|
||||
COLSHAPE_CYLINDER,
|
||||
},
|
||||
{
|
||||
ELEMTYPE_UNK2,
|
||||
{ 0x00000001, 0x00, 0x00 },
|
||||
{ 0xFFCFFFFF, 0x00, 0x00 },
|
||||
TOUCH_ON | TOUCH_SFX_NONE,
|
||||
BUMP_NONE,
|
||||
OCELEM_NONE,
|
||||
},
|
||||
{ 200, 200, 0, { 0 } } };
|
||||
static ColliderCylinderInit sCylinderInit = {
|
||||
{
|
||||
COLTYPE_NONE,
|
||||
AT_ON | AT_TYPE_PLAYER,
|
||||
AC_NONE,
|
||||
OC1_NONE,
|
||||
OC2_TYPE_PLAYER,
|
||||
COLSHAPE_CYLINDER,
|
||||
},
|
||||
{
|
||||
ELEMTYPE_UNK2,
|
||||
{ 0x00000001, 0x00, 0x00 },
|
||||
{ 0xFFCFFFFF, 0x00, 0x00 },
|
||||
TOUCH_ON | TOUCH_SFX_NONE,
|
||||
BUMP_NONE,
|
||||
OCELEM_NONE,
|
||||
},
|
||||
{ 200, 200, 0, { 0 } },
|
||||
};
|
||||
|
||||
void EnMFire1_Init(Actor* thisx, GlobalContext* globalCtx) {
|
||||
EnMFire1* this = THIS;
|
||||
|
@ -66,7 +68,7 @@ void EnMFire1_Update(Actor* thisx, GlobalContext* globalCtx) {
|
|||
EnMFire1* this = THIS;
|
||||
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);
|
||||
} else {
|
||||
Collider_UpdateCylinder(&this->actor, &this->collider);
|
||||
|
|
|
@ -9,7 +9,7 @@ struct EnMFire1;
|
|||
typedef struct EnMFire1 {
|
||||
/* 0x0000 */ Actor actor;
|
||||
/* 0x014C */ ColliderCylinder collider;
|
||||
/* 0x0198 */ f32 unk_198;
|
||||
/* 0x0198 */ f32 timer;
|
||||
} EnMFire1; // size = 0x019C
|
||||
|
||||
extern const ActorInit En_M_Fire1_InitVars;
|
||||
|
|
Loading…
Reference in a new issue