mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
have board_canHint() return false when trade in progress.
This commit is contained in:
parent
15ef9c4fd2
commit
aa88503cfb
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue