aboutsummaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorNathan Vance <nathav63@gmail.com>2015-04-04 15:57:34 -0400
committerNathan Vance <nathav63@gmail.com>2015-04-04 15:57:34 -0400
commit2e517f83554f072abf57800f06d26aea9fb51d52 (patch)
tree37e93d9255512b6c61b6a43e318b095ff471adad /data.c
parentCan now see history of previous turn (diff)
download7w-2e517f83554f072abf57800f06d26aea9fb51d52.tar.gz
7w-2e517f83554f072abf57800f06d26aea9fb51d52.tar.bz2
7w-2e517f83554f072abf57800f06d26aea9fb51d52.zip
ai trading bug fixes
Diffstat (limited to 'data.c')
-rw-r--r--data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/data.c b/data.c
index 2372672..e6cbac1 100644
--- a/data.c
+++ b/data.c
@@ -124,6 +124,7 @@ void data_endturn()
data_discard((i+numplayers-turn)%numplayers, hands[i][0]);
}
}
+ for(i = 0; i < 7; i++) turngoldbuffer[i] = 0; //Clear the visible buffer, the real one will be processed later.
if(era == 0 || era == 2) //pass to the left
turn++;
else //pass to the right
@@ -182,6 +183,7 @@ int data_geteast(int p)
{
int ret = p-1;
if(ret < 0) ret = numplayers-1;
+ return ret;
}
int data_getwest(int p)
bgstack15