aboutsummaryrefslogtreecommitdiff
path: root/brandt.c
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-10-14 23:40:38 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-10-14 23:57:15 +0200
commitda43b9311a53daa9c120735c60e9ba9e1955990c (patch)
treeb5e36fe47b246e270cc862a38b8c3556ed27f3f1 /brandt.c
parentfc9fdd313bc08a4f290780dfa1cf9133eddf3bf3 (diff)
fix preparation for M+1st price auctions
Diffstat (limited to 'brandt.c')
-rw-r--r--brandt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/brandt.c b/brandt.c
index 0c7b40e..337de57 100644
--- a/brandt.c
+++ b/brandt.c
@@ -73,7 +73,10 @@ BRANDT_bidder_start (struct BRANDT_Auction *auction,
* encrypt_bid round to show that the bidder has chosen a valid bid and the
* outcome callback will remap the result to the original k price values. */
if (auction_mPlusFirstPrice == atype)
+ {
auction->k *= n;
+ auction->b = auction->b * n + n - i - 1;
+ }
if (handler_prep[atype][outcome][msg_init])
handler_prep[atype][outcome][msg_init] (auction);