Make sure the right audio CD track is played when starting a level
This commit is contained in:
parent
adffb1065b
commit
4def3501ef
|
@ -4,6 +4,7 @@ D2X-Rebirth Changelog
|
|||
--------
|
||||
arch/carbon/conf.h, d2x-Info.plist, d2xgl-Info.plist, d2x-rebirth.xcodeproj, English.lproj/InfoPlist.strings: Increment version number for Mac, 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
|
||||
|
||||
20080628
|
||||
--------
|
||||
|
|
|
@ -312,6 +312,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) {
|
||||
//try to play redbook
|
||||
play_redbook_track(REDBOOK_FIRST_LEVEL_TRACK + (songnum % (n_tracks-REDBOOK_FIRST_LEVEL_TRACK+1)),1);
|
||||
|
|
Loading…
Reference in a new issue