mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-26 09:58:20 +01:00
When tray's hidden you can't see that you're in trade mode. So try
revealing the tray (and so showing the mode) before aborting trade request due to being in trade mode.
This commit is contained in:
parent
1c94e2c6cc
commit
27c518dec4
1 changed files with 3 additions and 2 deletions
|
@ -1407,9 +1407,10 @@ board_replaceTiles( BoardCtxt* board )
|
|||
static XP_Bool
|
||||
preflight( BoardCtxt* board )
|
||||
{
|
||||
return !board->gameOver && !TRADE_IN_PROGRESS(board)
|
||||
return !board->gameOver
|
||||
&& server_getCurrentTurn(board->server) >= 0
|
||||
&& checkRevealTray( board );
|
||||
&& checkRevealTray( board )
|
||||
&& !TRADE_IN_PROGRESS(board);
|
||||
} /* preflight */
|
||||
|
||||
/* Refuse with error message if any tiles are currently on board in this turn.
|
||||
|
|
Loading…
Reference in a new issue