mirror of
https://github.com/pmret/papermario.git
synced 2024-11-09 12:32:38 +01:00
Struct update & formatting
This commit is contained in:
parent
a1d39c1c1e
commit
5121395a7e
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -128,7 +128,7 @@ s8 get_global_byte(s32 index) {
|
||||
s32 clear_area_flag(s32 index) {
|
||||
s32 wordIdx = index / 32;
|
||||
s32 bitIdx = index % 32;
|
||||
SaveData *saveFile = &gCurrentSaveFile;
|
||||
SaveData* saveFile = &gCurrentSaveFile;
|
||||
s32 flag = saveFile->areaFlags[wordIdx] & (1 << bitIdx);
|
||||
|
||||
if (flag != 0) {
|
||||
@ -142,7 +142,7 @@ s32 clear_area_flag(s32 index) {
|
||||
s32 set_area_flag(s32 index) {
|
||||
s32 wordIdx = index / 32;
|
||||
s32 bitIdx = index % 32;
|
||||
SaveData *saveFile = &gCurrentSaveFile;
|
||||
SaveData* saveFile = &gCurrentSaveFile;
|
||||
s32 flag = saveFile->areaFlags[wordIdx] & (1 << bitIdx);
|
||||
|
||||
if (flag != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user