mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-11-16 07:48:07 +01:00
Put back code initiating connection when starting client game.
This commit is contained in:
parent
53b27c96c9
commit
8d1da3ee0e
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