add match test on language code and number of players

This commit is contained in:
Andy2 2010-09-10 13:45:40 -07:00
parent e60495ff93
commit dc957e1a92

View file

@ -145,6 +145,13 @@ CRefMgr::FindOpenGameFor( const char* cookie, const char* connName,
++iter ) {
CookieRef* cref = iter->second;
/* Reject immediately if language code or proposed game size don't
match. */
if ( (cref->GetLangCode() != langCode)
|| (cref->GetPlayersSought() != nPlayersT) ) {
continue;
}
if ( !!connName && 0 == strcmp( cref->ConnName(), connName ) ) {
found = cref;
/* if ( cref->Lock() ) { */