mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
hack to recover from stalled by-room-name games
This commit is contained in:
parent
5c150d2f58
commit
15f95b52a9
1 changed files with 8 additions and 0 deletions
|
@ -530,6 +530,14 @@ server_makeFromStream( MPFORMAL XWEnv xwe, XWStreamCtxt* stream, ModelCtxt* mode
|
|||
server->nv.prevWordsStream = readStreamIf( server, stream );
|
||||
}
|
||||
|
||||
/* Hack alert: recovering from an apparent bug that leaves the game
|
||||
thinking it's a client but being in the host-only XWSTATE_BEGIN
|
||||
state. */
|
||||
if ( server->nv.gameState == XWSTATE_BEGIN && !amServer(server) ) {
|
||||
XP_LOGFF( "server_makeFromStream(): fixing state" );
|
||||
SETSTATE( server, XWSTATE_NONE );
|
||||
}
|
||||
|
||||
informMissing( server, xwe );
|
||||
return server;
|
||||
} /* server_makeFromStream */
|
||||
|
|
Loading…
Reference in a new issue