mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Don't init the sound system on dedicated servers
This commit is contained in:
parent
7c3c09b95d
commit
8ba644679b
1 changed files with 8 additions and 2 deletions
10
src/d_main.c
10
src/d_main.c
|
|
@ -1223,7 +1223,13 @@ void D_SRB2Main(void)
|
||||||
CONS_Printf("R_Init(): Init SRB2 refresh daemon.\n");
|
CONS_Printf("R_Init(): Init SRB2 refresh daemon.\n");
|
||||||
R_Init();
|
R_Init();
|
||||||
|
|
||||||
// setting up sound
|
// setting up sound
|
||||||
|
if (dedicated)
|
||||||
|
{
|
||||||
|
nosound = true;
|
||||||
|
nomidimusic = nodigimusic = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
CONS_Printf("S_Init(): Setting up sound.\n");
|
CONS_Printf("S_Init(): Setting up sound.\n");
|
||||||
if (M_CheckParm("-nosound"))
|
if (M_CheckParm("-nosound"))
|
||||||
nosound = true;
|
nosound = true;
|
||||||
|
|
@ -1239,7 +1245,7 @@ void D_SRB2Main(void)
|
||||||
I_StartupSound();
|
I_StartupSound();
|
||||||
I_InitMusic();
|
I_InitMusic();
|
||||||
S_Init(cv_soundvolume.value, cv_digmusicvolume.value, cv_midimusicvolume.value);
|
S_Init(cv_soundvolume.value, cv_digmusicvolume.value, cv_midimusicvolume.value);
|
||||||
|
|
||||||
CONS_Printf("ST_Init(): Init status bar.\n");
|
CONS_Printf("ST_Init(): Init status bar.\n");
|
||||||
ST_Init();
|
ST_Init();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue