]> Pileus Git - ~andy/rhawk/commitdiff
Fix bidders command
authorAndy Spencer <andy753421@gmail.com>
Wed, 9 Oct 2013 02:06:23 +0000 (02:06 +0000)
committerAndy Spencer <andy753421@gmail.com>
Wed, 9 Oct 2013 02:07:07 +0000 (02:07 +0000)
spades.awk

index 19c0fde526ae991045a59faf8c2ecdfc2ad51296..41d2ab8816b29d558fcaa869888c89a853833118 100644 (file)
@@ -239,9 +239,11 @@ function sp_bid(who)
 
 function sp_bidders(   i, turn, bid, bids)
 {
 
 function sp_bidders(   i, turn, bid, bids)
 {
-       for (i = 0; i < 4; i++)
-               if (bid = sp_bid((sp_dealer + i) % 4))
-                       bids = bids " " bid
+       for (i = 0; i < 4; i++) {
+               turn = (sp_dealer + i) % 4
+               if (bid = sp_bid(turn))
+                       bids = bids " " sp_order[turn] ":" bid
+       }
        gsub(/^ +| +$/, "", bids)
        return bids
 }
        gsub(/^ +| +$/, "", bids)
        return bids
 }