don't let pick robot tiles

This commit is contained in:
ehouse 2003-11-18 03:39:43 +00:00
parent d5331d97e4
commit 8789ed9bc5

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