mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
fix standalone hang introduced by 15f95b52a
This commit is contained in:
parent
942604e2bd
commit
5998132d4b
1 changed files with 2 additions and 1 deletions
|
@ -533,7 +533,8 @@ server_makeFromStream( MPFORMAL XWEnv xwe, XWStreamCtxt* stream, ModelCtxt* mode
|
|||
/* 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) ) {
|
||||
if ( server->nv.gameState == XWSTATE_BEGIN &&
|
||||
server->vol.gi->serverRole == SERVER_ISCLIENT ) {
|
||||
XP_LOGFF( "server_makeFromStream(): fixing state" );
|
||||
SETSTATE( server, XWSTATE_NONE );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue