From dd3bd1f661fcf626e2dfb52247306e085340fc25 Mon Sep 17 00:00:00 2001 From: Andy2 Date: Sat, 6 Nov 2010 21:31:53 -0700 Subject: [PATCH] don't show hint buttons until there are tiles assigned --- xwords4/common/board.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xwords4/common/board.c b/xwords4/common/board.c index b0d3fb250..c21c10885 100644 --- a/xwords4/common/board.c +++ b/xwords4/common/board.c @@ -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;