mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
don't let pick robot tiles
This commit is contained in:
parent
e0caca7b39
commit
e7a6243ba1
1 changed files with 2 additions and 3 deletions
|
@ -1288,7 +1288,8 @@ fetchTiles( ServerCtxt* server, XP_U16 playerNum, XP_U16 nToFetch,
|
|||
|
||||
XP_ASSERT( !!pool );
|
||||
#ifdef FEATURE_TRAY_EDIT
|
||||
ask = server->nv.allowPickTiles;
|
||||
ask = !server->vol.gi->players[playerNum].isRobot
|
||||
&& server->nv.allowPickTiles;
|
||||
#else
|
||||
ask = XP_FALSE;
|
||||
#endif
|
||||
|
@ -1846,9 +1847,7 @@ server_commitTrade( ServerCtxt* server, TileBit selBits )
|
|||
{
|
||||
TrayTileSet oldTiles;
|
||||
TrayTileSet newTiles;
|
||||
#ifndef XWFEATURE_STANDALONE_ONLY
|
||||
XP_U16 turn = server->nv.currentTurn;
|
||||
#endif
|
||||
|
||||
removeTradedTiles( server, selBits, &oldTiles );
|
||||
|
||||
|
|
Loading…
Reference in a new issue