a slightly more readable version of the test

This commit is contained in:
ehofman
2009-11-26 13:05:44 +00:00
committed by Tim Moore
parent f6513127ce
commit 0f21c39e49

View File

@@ -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;
}