mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +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 );
|
board_invalAll( globals->game.board );
|
||||||
InvalidateRect( globals->hWnd, NULL, TRUE /* erase */ );
|
InvalidateRect( globals->hWnd, NULL, TRUE /* erase */ );
|
||||||
|
|
||||||
/* #ifdef XWFEATURE_RELAY */
|
#ifndef XWFEATURE_STANDALONE_ONLY
|
||||||
/* 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 */
|
|
||||||
|
|
||||||
if ( !!globals->game.comms ) {
|
if ( !!globals->game.comms ) {
|
||||||
comms_start( 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 );
|
ceSetLeftSoftkey( globals, ID_MOVE_TURNDONE );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue