mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +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 ) {
|
++iter ) {
|
||||||
CookieRef* cref = iter->second;
|
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 ) ) {
|
if ( !!connName && 0 == strcmp( cref->ConnName(), connName ) ) {
|
||||||
found = cref;
|
found = cref;
|
||||||
/* if ( cref->Lock() ) { */
|
/* if ( cref->Lock() ) { */
|
||||||
|
|
Loading…
Add table
Reference in a new issue