From: ehofman Date: Thu, 26 Nov 2009 13:05:44 +0000 (+0000) Subject: a slightly more readable version of the test X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0f21c39e496cf7ac83c0f87b85db9566e3e32689;p=simgear.git a slightly more readable version of the test --- diff --git a/simgear/sound/soundmgr_openal.cxx b/simgear/sound/soundmgr_openal.cxx index 010b548d..918b05da 100644 --- a/simgear/sound/soundmgr_openal.cxx +++ b/simgear/sound/soundmgr_openal.cxx @@ -156,10 +156,12 @@ void SGSoundMgr::init() { else break; } - const char *vendor = (char *)alGetString(AL_VENDOR); - const char *renderer = (char *)alGetString(AL_RENDERER); - if ( strcmp(vendor, "OpenAL Community") || strcmp(renderer, "Software") - || strcmp(renderer, "OpenAL Sample Implementation") ) { + string vendor = alGetString(AL_VENDOR); + string renderer = alGetString(AL_RENDERER); + if ( vendor != "OpenAL Community" || + (renderer != "Software" && renderer != "OpenAL Sample Implementation") + ) + { _bad_doppler = true; }