mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Behebt einen Absturz beim Levelwechsel, wenn zuvor OGG/Vorbis
deaktiviert wurde.
This commit is contained in:
parent
0c127815f2
commit
c3dcd1c1fa
1 changed files with 5 additions and 2 deletions
|
@ -635,7 +635,9 @@ Parse play controls.
|
|||
*/
|
||||
void OGG_ParseCmd(char *arg)
|
||||
{
|
||||
int n;
|
||||
int n;
|
||||
cvar_t *ogg_enable;
|
||||
ogg_enable = Cvar_Get ("ogg_enable", "0", CVAR_ARCHIVE);
|
||||
|
||||
switch (arg[0]) {
|
||||
case '#':
|
||||
|
@ -658,7 +660,8 @@ void OGG_ParseCmd(char *arg)
|
|||
OGG_Open(REL, -1);
|
||||
break;
|
||||
default:
|
||||
OGG_OpenName(arg);
|
||||
if (ogg_enable->value != 0)
|
||||
OGG_OpenName(arg);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue