wc2 tracks for level briefing works
This commit is contained in:
parent
ffde756ebb
commit
fecba2b622
3 changed files with 14 additions and 3 deletions
src
|
@ -434,6 +434,8 @@ global void ShowIntro(const Intro *intro)
|
|||
|
||||
CallbackMusicOff();
|
||||
StopMusic();
|
||||
CDPlaySection = "briefing";
|
||||
CDRomCheck(NULL);
|
||||
if( intro->VoiceFile[0] ) {
|
||||
PlayFile(intro->VoiceFile[0]);
|
||||
}
|
||||
|
|
|
@ -376,13 +376,21 @@ global int PlayCDRom(const char* name)
|
|||
cd_play(17);
|
||||
}
|
||||
}
|
||||
} else if (!GameRunning && track != 15) {
|
||||
} else if (!strcmp(CDPlaySection, "briefing")) {
|
||||
if (!ThisPlayer->Race && track != 7) {
|
||||
cd_play(7);
|
||||
} else if (ThisPlayer->Race && track != 15) {
|
||||
cd_play(15);
|
||||
}
|
||||
} else if (!strcmp(CDPlaySection, "menu") && track != 15) {
|
||||
cd_play(15);
|
||||
} else if (GameRunning && !ThisPlayer->Race && (track < 3 || track > 7)) {
|
||||
} else if (!strcmp(CDPlaySection, "game") &&
|
||||
!ThisPlayer->Race && (track < 3 || track > 6)) {
|
||||
do CDTrack = (MyRand() % NumCDTracks) + 3;
|
||||
while (CDTrack < 3 || CDTrack > 7);
|
||||
cd_play(CDTrack);
|
||||
} else if (GameRunning && ThisPlayer->Race && (track < 11 || track > 14)) {
|
||||
} else if (!strcmp(CDPlaySection, "game") &&
|
||||
ThisPlayer->Race && (track < 10 || track > 14)) {
|
||||
do CDTrack = (MyRand() % NumCDTracks) + 9;
|
||||
while (CDTrack < 11 || CDTrack > 14);
|
||||
cd_play(CDTrack);
|
||||
|
|
|
@ -639,6 +639,7 @@ global void GameMainLoop(void)
|
|||
|
||||
MultiPlayerReplayEachCycle();
|
||||
|
||||
CDPlaySection = "game";
|
||||
CDRomCheck(NULL);
|
||||
|
||||
while( GameRunning ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue