diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-11-12 12:06:50 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-11-12 12:06:50 +0100 |
commit | 1c93f17e79b8adb908b9c1c880c4e025a51b36fa (patch) | |
tree | f3ca935ea9c005bb721bd0b005b25a279d8ca5f3 | |
parent | 96f44f2cfba8806dcf9b85bedac5516f939fee18 (diff) | |
download | wbs-1c93f17e79b8adb908b9c1c880c4e025a51b36fa.tar.gz wbs-1c93f17e79b8adb908b9c1c880c4e025a51b36fa.tar.bz2 wbs-1c93f17e79b8adb908b9c1c880c4e025a51b36fa.zip |
pd_server: Reset payment in each round
-rw-r--r-- | pd_server.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pd_server.c b/pd_server.c index b8ff6f0..b8843fa 100644 --- a/pd_server.c +++ b/pd_server.c @@ -60,6 +60,8 @@ main(int argc, char *argv[]) listen(sock, 2); for (;;) { + a_payment = 0; + b_payment = 0; for (i = 0; i < 2; ++i) { player[i] = accept(sock, NULL, NULL); } |