have board_canHint() return false when trade in progress.

This commit is contained in:
Andy2 2011-03-08 07:40:38 -08:00
parent 15ef9c4fd2
commit aa88503cfb

View file

@ -561,7 +561,8 @@ XP_Bool
board_canHint( const BoardCtxt* board )
{
XP_Bool canHint = !board->gi->hintsNotAllowed
&& 0 < model_getNumTilesTotal( board->model, board->selPlayer );
&& 0 < model_getNumTilesTotal( board->model, board->selPlayer )
&& ! board->pti[board->selPlayer].tradeInProgress;
if ( canHint ) {
LocalPlayer* lp = &board->gi->players[board->selPlayer];
canHint = lp->isLocal && !LP_IS_ROBOT(lp);