From 0f7b5d4cafd5840564b210d8bb09660204a172dc Mon Sep 17 00:00:00 2001 From: gewlitys Date: Sat, 17 Dec 2005 17:57:54 +0000 Subject: [PATCH] config.audioquality obviously should set soundFlags, not soundDriver git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2086 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/starcon2.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/sc2/src/starcon2.c b/sc2/src/starcon2.c index 7faf92016..637c8c1fd 100644 --- a/sc2/src/starcon2.c +++ b/sc2/src/starcon2.c @@ -281,15 +281,21 @@ main (int argc, char *argv[]) const char *qstr = res_GetString ("config.audioquality"); if (!strcmp (qstr, "low")) { - options.soundDriver = audio_QUALITY_LOW; + options.soundFlags &= + ~(audio_QUALITY_MEDIUM | audio_QUALITY_HIGH); + options.soundFlags |= audio_QUALITY_LOW; } else if (!strcmp (qstr, "medium")) { - options.soundDriver = audio_QUALITY_MEDIUM; + options.soundFlags &= + ~(audio_QUALITY_HIGH | audio_QUALITY_LOW); + options.soundFlags |= audio_QUALITY_MEDIUM; } else if (!strcmp (qstr, "high")) { - options.soundDriver = audio_QUALITY_HIGH; + options.soundFlags &= + ~(audio_QUALITY_MEDIUM | audio_QUALITY_LOW); + options.soundFlags |= audio_QUALITY_HIGH; } else {