don't show hint buttons until there are tiles assigned

This commit is contained in:
Andy2 2010-11-06 21:31:53 -07:00
parent a6a7f1899d
commit dd3bd1f661

View file

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