mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +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 );
|
XP_ASSERT( !!pool );
|
||||||
#ifdef FEATURE_TRAY_EDIT
|
#ifdef FEATURE_TRAY_EDIT
|
||||||
ask = server->nv.allowPickTiles;
|
ask = !server->vol.gi->players[playerNum].isRobot
|
||||||
|
&& server->nv.allowPickTiles;
|
||||||
#else
|
#else
|
||||||
ask = XP_FALSE;
|
ask = XP_FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
@ -1846,9 +1847,7 @@ server_commitTrade( ServerCtxt* server, TileBit selBits )
|
||||||
{
|
{
|
||||||
TrayTileSet oldTiles;
|
TrayTileSet oldTiles;
|
||||||
TrayTileSet newTiles;
|
TrayTileSet newTiles;
|
||||||
#ifndef XWFEATURE_STANDALONE_ONLY
|
|
||||||
XP_U16 turn = server->nv.currentTurn;
|
XP_U16 turn = server->nv.currentTurn;
|
||||||
#endif
|
|
||||||
|
|
||||||
removeTradedTiles( server, selBits, &oldTiles );
|
removeTradedTiles( server, selBits, &oldTiles );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue