mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
add assert, and don't pass pendingRegistrations to clients -- it confuses them
This commit is contained in:
parent
743d532fc7
commit
1e80109c3e
1 changed files with 5 additions and 3 deletions
|
@ -416,9 +416,9 @@ server_makeFromStream( MPFORMAL XWStreamCtxt* stream, ModelCtxt* model,
|
|||
server->nv.prevWordsStream = readStreamIf( server, stream );
|
||||
}
|
||||
|
||||
util_informMissing( util, server->vol.gi->serverRole == SERVER_ISSERVER,
|
||||
comms_getConType( comms ),
|
||||
server->nv.pendingRegistrations );
|
||||
XP_Bool isServer = amServer( server );
|
||||
util_informMissing( util, isServer, comms_getConType( comms ),
|
||||
isServer ? server->nv.pendingRegistrations : 0 );
|
||||
return server;
|
||||
} /* server_makeFromStream */
|
||||
|
||||
|
@ -2551,6 +2551,8 @@ tileCountsOk( const ServerCtxt* server )
|
|||
static void
|
||||
setTurn( ServerCtxt* server, XP_S16 turn )
|
||||
{
|
||||
XP_ASSERT( -1 == turn
|
||||
|| (!amServer(server) || (0 == server->nv.pendingRegistrations)));
|
||||
if ( server->nv.currentTurn != turn ) {
|
||||
server->nv.currentTurn = turn;
|
||||
server->nv.lastMoveTime = util_getCurSeconds( server->vol.util );
|
||||
|
|
Loading…
Reference in a new issue