Looks like !a==b is not the same as a!=b if a is a UserConfigParams.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8143 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
9e8a53631e
commit
4f65cd539b
@ -65,7 +65,7 @@ NetworkHttp::NetworkHttp() : m_news(std::vector<NewsMessage>()),
|
||||
{
|
||||
m_current_news_message = -1;
|
||||
// Don't even start the network threads if networking is disabled.
|
||||
if(!UserConfigParams::m_internet_status==NetworkHttp::IPERM_ALLOWED)
|
||||
if(UserConfigParams::m_internet_status!=NetworkHttp::IPERM_ALLOWED)
|
||||
return;
|
||||
|
||||
pthread_mutex_init(&m_mutex_command, NULL);
|
||||
@ -185,7 +185,7 @@ void *NetworkHttp::mainLoop(void *obj)
|
||||
*/
|
||||
NetworkHttp::~NetworkHttp()
|
||||
{
|
||||
if(!UserConfigParams::m_internet_status==NetworkHttp::IPERM_ALLOWED)
|
||||
if(UserConfigParams::m_internet_status!=NetworkHttp::IPERM_ALLOWED)
|
||||
return;
|
||||
|
||||
// if a download should be active (which means it was cancelled by the
|
||||
|
Loading…
Reference in New Issue
Block a user