Struct update & formatting

This commit is contained in:
Ethan Roseman 2020-09-21 20:59:58 -04:00
parent a1d39c1c1e
commit 5121395a7e
3 changed files with 12 additions and 13 deletions

View File

@ -156,9 +156,8 @@ typedef struct PlayerData {
typedef struct Trigger {
/* 0x00 */ s16 genericFlagIndex;
/* 0x02 */ char unk_02[2];
/* 0x04 */ s32 crateFlagIndex;
///* 0x06 */ s16 panelFlagIndex;
/* 0x08 */ s32 colliderID;
/* 0x04 */ s32 params1;
/* 0x08 */ s32 params2;
/* 0x0C */ UNK_FUN_PTR(functionHandler);
/* 0x10 */ Bytecode* scriptStart;
/* 0x14 */ struct ScriptInstance* runningScript;

View File

@ -9,7 +9,7 @@ void player_enter_blue_pipe(Entity* bluePipe) {
Trigger* pipeTrigger = bluePipe->trigger;
playerStatus->targetYaw = gCameras[gCurrentCameraID].currentYaw + 180.0f;
pipeTrigger->crateFlagIndex = 0x19;
pipeTrigger->params1 = 0x19;
playerStatus->renderMode = 0xD;
func_802DDFF8(0x10002, 5, 2, 1, 1, 0, 0);
@ -22,9 +22,9 @@ void func_802E8D74(Entity* entity) {
Trigger* entityTrigger = entity->trigger;
playerStatus->position.y--;
entityTrigger->crateFlagIndex--;
entityTrigger->params1--;
if (entityTrigger->crateFlagIndex == -1) {
if (entityTrigger->params1 == -1) {
playerStatus->renderMode = 0xD;
playerStatus->position.y -= 50.0f;
func_802DDFF8(0x10002, 0, 0, 0, 0, 0, 0);