don't let pick robot tiles

This commit is contained in:
ehouse 2003-11-18 03:39:43 +00:00
parent e0caca7b39
commit e7a6243ba1

View file

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