Skip to content

Commit b245b33

Browse files
committed
snd_restart: always restart the cgame
Previously, it only restarted if you were in a game. So if you were in the main menu, the music would stop playing. Pretty unhelpful if you are trying to fix your sound...
1 parent ba59f4d commit b245b33

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

src/engine/client/cl_main.cpp

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,22 +1476,10 @@ void CL_Snd_Restart_f()
14761476
{
14771477
Audio::Shutdown();
14781478

1479-
if( !cls.cgameStarted )
1480-
{
1481-
// In the main menu case the cgame is not restarted... but is there anything preventing
1482-
// the main menu from also using sound handles?
1483-
if (!Audio::Init()) {
1484-
Log::Warn("Couldn't initialize the audio subsystem.");
1485-
}
1486-
//TODO S_BeginRegistration()
1487-
}
1488-
else
1489-
{
1490-
if (!Audio::Init()) {
1491-
Log::Warn("Couldn't initialize the audio subsystem.");
1492-
}
1493-
CL_Vid_Restart_f();
1479+
if (!Audio::Init()) {
1480+
Log::Warn("Couldn't initialize the audio subsystem.");
14941481
}
1482+
CL_Vid_Restart_f();
14951483
}
14961484

14971485
/*

0 commit comments

Comments
 (0)