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:
ehouse 2009-10-25 00:23:00 +00:00
parent 1c94e2c6cc
commit 27c518dec4

View file

@ -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.