Fix music selection to match TU19 behavior

Menu music (menu1-4) now plays only on the title screen, creative
music (creative1-6) only plays in creative mode, and survival mode
correctly plays only calm/hal/nuance/piano tracks. Reordered the
eMUSICFILES enum so piano tracks are contiguous with the survival
range, added game-mode-aware track selection via getOverworldMusicID,
and re-enabled the playStreaming call in setLevel to stop menu music
when entering gameplay. Added debug logging for track selection.
This commit is contained in:
Revela
2026-03-21 12:32:22 -05:00
parent cbbac3936c
commit c62d5e6ff4
4 changed files with 90 additions and 25 deletions

View File

@@ -27,6 +27,7 @@ public:
void adjustPlayer(shared_ptr<Player> player);
bool isCutScene();
void setLocalMode(GameType *mode);
GameType* getLocalPlayerMode() const { return localPlayerMode; }
virtual void initPlayer(shared_ptr<Player> player);
virtual bool canHurtPlayer();
virtual bool destroyBlock(int x, int y, int z, int face);