aboutsummaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
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