From e539cdc14bc93c10f59392cdcb8c0fa1d4e7e09e Mon Sep 17 00:00:00 2001 From: kreatordxx <> Date: Tue, 1 Jul 2008 11:18:37 +0000 Subject: [PATCH] Make sure the right audio CD track is played when starting a level --- CHANGELOG.txt | 1 + main/songs.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index a184f1069..b4783e2d2 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -4,6 +4,7 @@ D1X-Rebirth Changelog -------- arch/carbon/conf.h, D1X.make, d1x-Info.plist, d1xgl-Info.plist, d1x-rebirth.xcodeproj, English.lproj/InfoPlist.strings: Increment version number for Mac, update MPW makefile, ensure Get Info strings copy to bundle, use correct Mac OS X SDKs include/strutil.h, misc/strutil.c: Add snprintf for Mac OS 9 +main/songs.c: Make sure the right audio CD track is played when starting a level 20080617 -------- diff --git a/main/songs.c b/main/songs.c index 07eb3118b..9aa0421cd 100644 --- a/main/songs.c +++ b/main/songs.c @@ -315,6 +315,8 @@ void songs_play_level_song( int levelnum ) if (!RBAEnabled() && GameCfg.SndEnableRedbook) // need this to determine if we currently have the official CD reinit_redbook(); + + n_tracks = RBAGetNumberOfTracks(); if (RBAEnabled() && GameCfg.SndEnableRedbook) {