diff options
author | Nathan Vance <nathav63@gmail.com> | 2015-04-04 15:57:34 -0400 |
---|---|---|
committer | Nathan Vance <nathav63@gmail.com> | 2015-04-04 15:57:34 -0400 |
commit | 2e517f83554f072abf57800f06d26aea9fb51d52 (patch) | |
tree | 37e93d9255512b6c61b6a43e318b095ff471adad /data.c | |
parent | Can now see history of previous turn (diff) | |
download | 7w-2e517f83554f072abf57800f06d26aea9fb51d52.tar.gz 7w-2e517f83554f072abf57800f06d26aea9fb51d52.tar.bz2 7w-2e517f83554f072abf57800f06d26aea9fb51d52.zip |
ai trading bug fixes
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |