From 8789ed9bc5d83ee7d5ef1854f0de32aa8c9a9827 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 --- xwords4/common/server.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xwords4/common/server.c b/xwords4/common/server.c index e884e1af3..dfb6e2b78 100644 --- a/xwords4/common/server.c +++ b/xwords4/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 );