mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
Run server after gameinfo dialog dismissed in case a player's become a robot.
This commit is contained in:
parent
91bfaae902
commit
29621ec4d1
1 changed files with 4 additions and 5 deletions
|
@ -1880,16 +1880,15 @@ WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
|
|
||||||
XP_MEMSET( &state, 0, sizeof(state) );
|
XP_MEMSET( &state, 0, sizeof(state) );
|
||||||
state.globals = globals;
|
state.globals = globals;
|
||||||
state.isNewGame = XP_FALSE;
|
|
||||||
|
|
||||||
DialogBoxParam(globals->hInst, (LPCTSTR)IDD_GAMEINFO, hWnd,
|
DialogBoxParam(globals->hInst, (LPCTSTR)IDD_GAMEINFO, hWnd,
|
||||||
(DLGPROC)GameInfo, (long)&state );
|
(DLGPROC)GameInfo, (long)&state );
|
||||||
|
|
||||||
if ( !state.userCancelled && state.prefsChanged ) {
|
if ( !state.userCancelled ) {
|
||||||
/* need to update some prefs? */
|
if ( state.prefsChanged ) {
|
||||||
/* if ( state.colorsChanged ) { */
|
|
||||||
updateForColors( globals );
|
updateForColors( globals );
|
||||||
/* } */
|
}
|
||||||
|
draw = server_do( globals->game.server );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue