mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
use local variable
This commit is contained in:
parent
6875eaa10a
commit
fc6d6ec707
1 changed files with 9 additions and 8 deletions
|
@ -316,15 +316,16 @@ game_getState( const XWGame* game, GameStateInfo* gsi )
|
|||
{
|
||||
XP_Bool gameOver = server_getGameIsOver( game->server );
|
||||
|
||||
gsi->curTurnSelected = board_curTurnSelected( game->board );
|
||||
gsi->trayVisState = board_getTrayVisState( game->board );
|
||||
gsi->visTileCount = board_visTileCount( game->board );
|
||||
gsi->canHint = !gameOver && board_canHint( game->board );
|
||||
gsi->canRedo = board_canTogglePending( game->board );
|
||||
gsi->inTrade = board_inTrade( game->board, &gsi->tradeTilesSelected );
|
||||
BoardCtxt* board = game->board;
|
||||
gsi->curTurnSelected = board_curTurnSelected( board );
|
||||
gsi->trayVisState = board_getTrayVisState( board );
|
||||
gsi->visTileCount = board_visTileCount( board );
|
||||
gsi->canHint = !gameOver && board_canHint( board );
|
||||
gsi->canRedo = board_canTogglePending( board );
|
||||
gsi->inTrade = board_inTrade( board, &gsi->tradeTilesSelected );
|
||||
gsi->canChat = !!game->comms && comms_canChat( game->comms );
|
||||
gsi->canShuffle = board_canShuffle( game->board );
|
||||
gsi->canHideRack = board_canHideRack( game->board );
|
||||
gsi->canShuffle = board_canShuffle( board );
|
||||
gsi->canHideRack = board_canHideRack( board );
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Reference in a new issue