mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-14 20:05:02 +00:00
apply review changes
This commit is contained in:
parent
279759f481
commit
5552e92eef
8 changed files with 39 additions and 46 deletions
|
@ -2185,7 +2185,7 @@ s32 DebugCamera_UpdateDemoControl(DebugCam* debugCam, Camera* cam) {
|
|||
|
||||
if (CHECK_BTN_ALL(sPlay->state.input[1].press.button, BTN_CRIGHT)) {
|
||||
gUseCutsceneCam = false;
|
||||
gSaveContext.save.cutsceneIndex = CS_INDEX_TRIGGERED;
|
||||
gSaveContext.save.cutsceneIndex = CS_INDEX_EMPTY;
|
||||
gSaveContext.cutsceneTrigger = 1;
|
||||
sDebugCamAnim.curFrame = 0.0f;
|
||||
sDebugCamAnim.keyframe = 0;
|
||||
|
|
|
@ -191,14 +191,14 @@ void Cutscene_UpdateScripted(PlayState* play, CutsceneContext* csCtx) {
|
|||
|
||||
if (CHECK_BTN_ALL(input->press.button, BTN_DLEFT) && (csCtx->state == CS_STATE_IDLE) && IS_CUTSCENE_LAYER) {
|
||||
gUseCutsceneCam = false;
|
||||
gSaveContext.save.cutsceneIndex = CS_INDEX_TRIGGERED;
|
||||
gSaveContext.save.cutsceneIndex = CS_INDEX_EMPTY;
|
||||
gSaveContext.cutsceneTrigger = 1;
|
||||
}
|
||||
|
||||
if (CHECK_BTN_ALL(input->press.button, BTN_DUP) && (csCtx->state == CS_STATE_IDLE) && IS_CUTSCENE_LAYER &&
|
||||
!gDebugCamEnabled) {
|
||||
gUseCutsceneCam = true;
|
||||
gSaveContext.save.cutsceneIndex = CS_INDEX_TRIGGERED;
|
||||
gSaveContext.save.cutsceneIndex = CS_INDEX_EMPTY;
|
||||
gSaveContext.cutsceneTrigger = 1;
|
||||
}
|
||||
}
|
||||
|
@ -210,7 +210,7 @@ void Cutscene_UpdateScripted(PlayState* play, CutsceneContext* csCtx) {
|
|||
|
||||
if ((gSaveContext.cutsceneTrigger != 0) && (csCtx->state == CS_STATE_IDLE)) {
|
||||
PRINTF(T("\nデモ開始要求 発令!", "\nDemo start request issued!"));
|
||||
gSaveContext.save.cutsceneIndex = CS_INDEX_TRIGGERED;
|
||||
gSaveContext.save.cutsceneIndex = CS_INDEX_EMPTY;
|
||||
gSaveContext.cutsceneTrigger = 1;
|
||||
}
|
||||
|
||||
|
@ -746,7 +746,7 @@ void CutsceneCmd_Destination(PlayState* play, CutsceneContext* csCtx, CsCmdDesti
|
|||
play->nextEntranceIndex = ENTR_DEATH_MOUNTAIN_TRAIL_0;
|
||||
play->transitionTrigger = TRANS_TRIGGER_START;
|
||||
play->transitionType = TRANS_TYPE_FADE_BLACK_FAST;
|
||||
gSaveContext.save.cutsceneIndex = CS_INDEX_UNUSED;
|
||||
gSaveContext.save.cutsceneIndex = CS_INDEX_8000;
|
||||
break;
|
||||
|
||||
case CS_DEST_LAKE_HYLIA_WATER_RESTORED:
|
||||
|
@ -1367,10 +1367,10 @@ void CutsceneCmd_Destination(PlayState* play, CutsceneContext* csCtx, CsCmdDesti
|
|||
play->csCtx.script = SEGMENTED_TO_VIRTUAL(gTowerBarrierCs);
|
||||
play->csCtx.curFrame = 0;
|
||||
gSaveContext.cutsceneTrigger = 1;
|
||||
gSaveContext.save.cutsceneIndex = CS_INDEX_BARRIER;
|
||||
gSaveContext.save.cutsceneIndex = CS_INDEX_FFFF;
|
||||
csCtx->state = CS_STATE_STOP;
|
||||
} else {
|
||||
gSaveContext.save.cutsceneIndex = CS_INDEX_BARRIER;
|
||||
gSaveContext.save.cutsceneIndex = CS_INDEX_FFFF;
|
||||
csCtx->state = CS_STATE_STOP;
|
||||
}
|
||||
break;
|
||||
|
@ -2295,7 +2295,7 @@ void Cutscene_SetupScripted(PlayState* play, CutsceneContext* csCtx) {
|
|||
u8 i;
|
||||
|
||||
if ((gSaveContext.cutsceneTrigger != 0) && (csCtx->state == CS_STATE_IDLE) && !Player_InCsMode(play)) {
|
||||
gSaveContext.save.cutsceneIndex = CS_INDEX_TRIGGERED;
|
||||
gSaveContext.save.cutsceneIndex = CS_INDEX_EMPTY;
|
||||
}
|
||||
|
||||
if ((gSaveContext.save.cutsceneIndex >= CS_INDEX_0) && (csCtx->state == CS_STATE_IDLE)) {
|
||||
|
|
|
@ -131,14 +131,14 @@ typedef struct struct_8011F9B8 {
|
|||
|
||||
void func_8006D684(PlayState* play, Player* player) {
|
||||
static struct_8011F9B8 D_8011F9B8[] = {
|
||||
{ SCENE_GERUDOS_FORTRESS, 0xFFF0, { 3600, 1413, 360 }, 0x8001, 8 },
|
||||
{ SCENE_LON_LON_RANCH, 0xFFF0, { -250, 1, -1580 }, 0x4000, 6 },
|
||||
{ SCENE_LON_LON_RANCH, 0xFFF1, { 0, 0, 0 }, 0x0000, 5 },
|
||||
{ SCENE_LON_LON_RANCH, 0xFFF5, { 0, 0, 0 }, 0x0000, 7 },
|
||||
{ SCENE_HYRULE_FIELD, 0xFFF3, { -2961, 313, 7700 }, 0x0000, 7 },
|
||||
{ SCENE_HYRULE_FIELD, 0xFFF4, { -1900, 313, 7015 }, 0x0000, 7 },
|
||||
{ SCENE_HYRULE_FIELD, 0xFFF5, { -4043, 313, 6933 }, 0x0000, 7 },
|
||||
{ SCENE_HYRULE_FIELD, 0xFFF6, { -4043, 313, 6933 }, 0x0000, 7 },
|
||||
{ SCENE_GERUDOS_FORTRESS, CS_INDEX_0, { 3600, 1413, 360 }, 0x8001, 8 },
|
||||
{ SCENE_LON_LON_RANCH, CS_INDEX_0, { -250, 1, -1580 }, 0x4000, 6 },
|
||||
{ SCENE_LON_LON_RANCH, CS_INDEX_1, { 0, 0, 0 }, 0x0000, 5 },
|
||||
{ SCENE_LON_LON_RANCH, CS_INDEX_5, { 0, 0, 0 }, 0x0000, 7 },
|
||||
{ SCENE_HYRULE_FIELD, CS_INDEX_3, { -2961, 313, 7700 }, 0x0000, 7 },
|
||||
{ SCENE_HYRULE_FIELD, CS_INDEX_4, { -1900, 313, 7015 }, 0x0000, 7 },
|
||||
{ SCENE_HYRULE_FIELD, CS_INDEX_5, { -4043, 313, 6933 }, 0x0000, 7 },
|
||||
{ SCENE_HYRULE_FIELD, CS_INDEX_6, { -4043, 313, 6933 }, 0x0000, 7 },
|
||||
};
|
||||
s32 pad;
|
||||
s32 i;
|
||||
|
|
|
@ -329,7 +329,7 @@ void Play_Init(GameState* thisx) {
|
|||
gSaveContext.nextCutsceneIndex = CS_INDEX_NEXT_EMPTY;
|
||||
}
|
||||
|
||||
if (gSaveContext.save.cutsceneIndex == CS_INDEX_TRIGGERED) {
|
||||
if (gSaveContext.save.cutsceneIndex == CS_INDEX_EMPTY) {
|
||||
gSaveContext.save.cutsceneIndex = CS_INDEX_AUTO;
|
||||
}
|
||||
|
||||
|
|
|
@ -507,7 +507,7 @@ void Scene_SetTransitionForNextEntrance(PlayState* play) {
|
|||
}
|
||||
} else {
|
||||
if (!LINK_IS_ADULT) {
|
||||
entranceIndex = play->nextEntranceIndex; // SCENE_LAYER_CHILD_DAY
|
||||
entranceIndex = play->nextEntranceIndex + SCENE_LAYER_CHILD_DAY;
|
||||
} else {
|
||||
entranceIndex = play->nextEntranceIndex + SCENE_LAYER_ADULT_DAY;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue