From eb75a6dea4330de80e95575f98a9b0dbec97b15e Mon Sep 17 00:00:00 2001 From: feacur Date: Tue, 5 Nov 2024 17:11:28 +0100 Subject: [PATCH] use explicit scene layer names instead of numbers --- src/code/z_scene.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/code/z_scene.c b/src/code/z_scene.c index 78fa0dd684..521f5445ee 100644 --- a/src/code/z_scene.c +++ b/src/code/z_scene.c @@ -501,15 +501,15 @@ void Scene_SetTransitionForNextEntrance(PlayState* play) { if (!IS_DAY) { if (!LINK_IS_ADULT) { - entranceIndex = play->nextEntranceIndex + 1; + entranceIndex = play->nextEntranceIndex + SCENE_LAYER_CHILD_NIGHT; } else { - entranceIndex = play->nextEntranceIndex + 3; + entranceIndex = play->nextEntranceIndex + SCENE_LAYER_ADULT_NIGHT; } } else { if (!LINK_IS_ADULT) { - entranceIndex = play->nextEntranceIndex; + entranceIndex = play->nextEntranceIndex; // SCENE_LAYER_CHILD_DAY } else { - entranceIndex = play->nextEntranceIndex + 2; + entranceIndex = play->nextEntranceIndex + SCENE_LAYER_ADULT_DAY; } }