mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
Put back code initiating connection when starting client game.
This commit is contained in:
parent
62d247ee49
commit
8026322e8d
1 changed files with 9 additions and 10 deletions
|
@ -863,19 +863,18 @@ ceInitAndStartBoard( CEAppGlobals* globals, XP_Bool newGame,
|
|||
board_invalAll( globals->game.board );
|
||||
InvalidateRect( globals->hWnd, NULL, TRUE /* erase */ );
|
||||
|
||||
/* #ifdef XWFEATURE_RELAY */
|
||||
/* if ( newGame && globals->gameInfo.serverRole == SERVER_ISCLIENT ) { */
|
||||
/* XWStreamCtxt* stream; */
|
||||
/* XP_ASSERT( !!globals->game.comms ); */
|
||||
/* stream = make_generic_stream( globals ); */
|
||||
/* stream_setOnCloseProc( stream, ce_send_on_close ); */
|
||||
/* server_initClientConnection( globals->game.server, stream ); */
|
||||
/* } */
|
||||
/* #endif */
|
||||
|
||||
#ifndef XWFEATURE_STANDALONE_ONLY
|
||||
if ( !!globals->game.comms ) {
|
||||
comms_start( globals->game.comms );
|
||||
}
|
||||
if ( newGame && globals->gameInfo.serverRole == SERVER_ISCLIENT ) {
|
||||
XWStreamCtxt* stream;
|
||||
XP_ASSERT( !!globals->game.comms );
|
||||
stream = make_generic_stream( globals );
|
||||
stream_setOnCloseProc( stream, ce_send_on_close );
|
||||
server_initClientConnection( globals->game.server, stream );
|
||||
}
|
||||
#endif
|
||||
|
||||
ceSetLeftSoftkey( globals, ID_MOVE_TURNDONE );
|
||||
|
||||
|
|
Loading…
Reference in a new issue