mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
add match test on language code and number of players
This commit is contained in:
parent
e60495ff93
commit
dc957e1a92
1 changed files with 7 additions and 0 deletions
|
@ -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() ) { */
|
||||
|
|
Loading…
Reference in a new issue