From fc4e828e688996eecf76d734d4f970ec46295cec Mon Sep 17 00:00:00 2001 From: Dragorn421 Date: Wed, 11 Jun 2025 13:06:22 +0200 Subject: [PATCH] expand comment about 0xFFFD --- include/save.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/save.h b/include/save.h index bb74eabe48..d63217cdaa 100644 --- a/include/save.h +++ b/include/save.h @@ -429,6 +429,11 @@ typedef enum LinkAge { // scripted cutscene immediately. In the vanilla game, this is used to play // the cutscene where the barrier in Ganon's Castle is dispelled (using index 0xFFFF) // and to preview cutscenes in debug mode (using index 0xFFFD). +// +// 0xFFFD also is used by the cutscene system to indicate a scripted cutscene has been triggered. +// This is why `Play_Init` ignores that value, so that if the cutscene is interrupted +// by a new play state load (e.g. if the player falls out of bounds), it does not then +// try to wrongly load a cutscene layer. #define CS_INDEX_0 0xFFF0 #define CS_INDEX_1 0xFFF1 #define CS_INDEX_2 0xFFF2