@@ -471,7 +471,7 @@ Int PeerThreadClass::findServer( SBServer server )
471471 UnsignedInt oldPrivateIP = SBServerGetPrivateInetAddress (it->second );
472472 UnsignedShort oldPrivatePort = SBServerGetPrivateQueryPort (it->second );
473473 UnsignedInt oldPublicIP = SBServerGetPublicInetAddress (it->second );
474- if (! strcmp (oldName, newName) &&
474+ if (strcmp (oldName, newName) == 0 &&
475475 oldPrivateIP == newPrivateIP &&
476476 oldPublicIP == newPublicIP &&
477477 oldPrivatePort == newPrivatePort)
@@ -1842,7 +1842,7 @@ void PeerThreadClass::handleQMMatch(PEER peer, Int mapIndex, Int seed,
18421842 Int i=0 ;
18431843 for (; i<MAX_SLOTS; ++i)
18441844 {
1845- if (playerName[i] && stricmp (playerName[i], m_loginName.c_str ()))
1845+ if (playerName[i] && stricmp (playerName[i], m_loginName.c_str ()) != 0 )
18461846 {
18471847 peerMessagePlayer ( peer, playerName[i], " We're matched!" , NormalMessage );
18481848 }
@@ -2590,7 +2590,7 @@ static void roomKeyChangedCallback(PEER peer, RoomType roomType, const char *nic
25902590 }
25912591
25922592#ifdef DEBUG_LOGGING
2593- if (strcmp (key, " username" ) && strcmp (key, " b_flags" ))
2593+ if (strcmp (key, " username" ) != 0 && strcmp (key, " b_flags" ) != 0 )
25942594 {
25952595 DEBUG_LOG ((" roomKeyChangedCallback() - %s set %s=%s" , nick, key, val));
25962596 }
@@ -2705,7 +2705,7 @@ void playerLeftCallback(PEER peer, RoomType roomType, const char * nick, const c
27052705
27062706 if (t->getQMStatus () != QM_IDLE && t->getQMStatus () != QM_STOPPED)
27072707 {
2708- if (! stricmp (t->getQMBotName ().c_str (), nick))
2708+ if (stricmp (t->getQMBotName ().c_str (), nick) == 0 )
27092709 {
27102710 // matchbot left - bail
27112711 PeerResponse resp;
@@ -2845,9 +2845,9 @@ static void listingGamesCallback(PEER peer, PEERBool success, const char * name,
28452845 DEBUG_LOG ((" Game name is '%s'" , name));
28462846 const char *newname = SBServerGetStringValue (server, " gamename" , (char *)name);
28472847#if RTS_GENERALS
2848- if (strcmp (newname, " ccgenerals" ))
2848+ if (strcmp (newname, " ccgenerals" ) != 0 )
28492849#elif RTS_ZEROHOUR
2850- if (strcmp (newname, " ccgenzh" ))
2850+ if (strcmp (newname, " ccgenzh" ) != 0 )
28512851#endif
28522852 name = newname;
28532853 DEBUG_LOG ((" Game name is now '%s'" , name));
0 commit comments