mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
don't show hint buttons until there are tiles assigned
This commit is contained in:
parent
a6a7f1899d
commit
dd3bd1f661
1 changed files with 2 additions and 1 deletions
|
@ -560,7 +560,8 @@ board_canTogglePending( const BoardCtxt* board )
|
|||
XP_Bool
|
||||
board_canHint( const BoardCtxt* board )
|
||||
{
|
||||
XP_Bool canHint = !board->gi->hintsNotAllowed;
|
||||
XP_Bool canHint = !board->gi->hintsNotAllowed
|
||||
&& 0 < model_getNumTilesTotal( board->model, board->selPlayer );
|
||||
if ( canHint ) {
|
||||
LocalPlayer* lp = &board->gi->players[board->selPlayer];
|
||||
canHint = lp->isLocal && !lp->isRobot;
|
||||
|
|
Loading…
Reference in a new issue