expand comment about 0xFFFD

This commit is contained in:
Dragorn421 2025-06-11 13:06:22 +02:00
parent 8cedfbce9e
commit fc4e828e68
No known key found for this signature in database
GPG Key ID: 381AEBAF3D429335
1 changed files with 5 additions and 0 deletions

View File

@ -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