From 2e517f83554f072abf57800f06d26aea9fb51d52 Mon Sep 17 00:00:00 2001 From: Nathan Vance Date: Sat, 4 Apr 2015 15:57:34 -0400 Subject: ai trading bug fixes --- data.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'data.c') 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) -- cgit