From e7a6243ba13e05693bcc0c20d03253980c7b48c7 Mon Sep 17 00:00:00 2001 From: ehouse Date: Tue, 18 Nov 2003 03:39:43 +0000 Subject: [PATCH] don't let pick robot tiles --- common/server.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/server.c b/common/server.c index e884e1af3..dfb6e2b78 100644 --- a/common/server.c +++ b/common/server.c @@ -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 );