Commit 65c6a359 authored by sirlemonhead's avatar sirlemonhead Committed by Evan Ramos
Browse files

SW: When loading a level from the main menu, try play a wave/redbook music track

parent a7381d00
......@@ -3069,6 +3069,20 @@ void InitPlayerGameSettings(void)
RESET(Player[myconnectindex].Flags, PF_MOUSE_AIMING_ON);
}
void PlayLevelSong(void)
{
int track;
if (Level == 0)
{
track = RedBookSong[4 + RANDOM_RANGE(10)];
}
else
{
track = RedBookSong[Level];
}
PlaySong(LevelSong, track, TRUE, TRUE);
}
void InitRunLevel(void)
{
......@@ -3084,7 +3098,7 @@ void InitRunLevel(void)
if (gs.Ambient)
StartAmbientSound();
SetCrosshair();
PlaySong(LevelSong, -1, TRUE, TRUE);
PlayLevelSong();
SetRedrawScreen(Player + myconnectindex);
// crappy little hack to prevent play clock from being overwritten
// for load games
......@@ -3120,18 +3134,7 @@ void InitRunLevel(void)
// Initialize Game part of network code (When ready2send != 0)
InitNetVars();
{
int track;
if (Level == 0)
{
track = RedBookSong[4+RANDOM_RANGE(10)];
}
else
{
track = RedBookSong[Level];
}
PlaySong(LevelSong, track, TRUE, TRUE);
}
PlayLevelSong();
InitPrediction(&Player[myconnectindex]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment