mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
Don't set address in standalone game (should fix assertion
failure/possible crash); set default menu to Undo after it's been used once.
This commit is contained in:
parent
5602827ebf
commit
244e0f58db
1 changed files with 2 additions and 2 deletions
|
@ -916,8 +916,7 @@ ceInitAndStartBoard( CEAppGlobals* globals, XP_Bool newGame,
|
|||
0, &globals->appPrefs.cp, &procs );
|
||||
|
||||
#if defined XWFEATURE_RELAY || defined XWFEATURE_BLUETOOTH
|
||||
if ( !!addr ) {
|
||||
XP_ASSERT( globals->game.comms != NULL );
|
||||
if ( !!addr && !!globals->game.comms ) {
|
||||
comms_setAddr( globals->game.comms, addr );
|
||||
}
|
||||
#endif
|
||||
|
@ -2558,6 +2557,7 @@ WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
|
||||
case ID_MOVE_UNDOLAST:
|
||||
draw = server_handleUndo( globals->game.server );
|
||||
ceSetLeftSoftkey( globals, ID_MOVE_UNDOLAST );
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue