Pony7 / cspoker

Automatically exported from code.google.com/p/cspoker
GNU General Public License v2.0
1 stars 0 forks source link

callAmount is set as 0 after bigBlind posting #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. start a server/normal game on rev 1081 with a flex client and a text client
2. create a table and have players sit in
3. receive small and big blind events.  The player who posted the
smallBlind must now choose to call or raise the difference between the big
blind and small blind (5 chips on a 5/10 game).

What is the expected output? What do you see instead?
callAmount should be 5 (bigBlind - smallBlind already posted).

Instead:  callAmount is 0, leading to some game logic errors on the client
side.

<ns2:holdemTableTreeEventWrapper tableID="0"
xmlns:ns2="http://www.cspoker.org/api/2008-11/">
    <event xsi:type="ns2:nextPlayerEvent" playerId="0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <callAmount>0</callAmount>
    </event>

stack trace link:  (server-xml): http://cspoker.pastebin.com/m37603dc8

Nota Bene: if a bet or raise is made, then callAmount is reflected properly
after that.  it seems to only be incorrectly set to zero right after the
blinds.

Original issue reported on code.google.com by zkin...@gmail.com on 18 Nov 2008 at 1:04

GoogleCodeExporter commented 9 years ago
I'll fix this asap.

Original comment by kenzotom...@gmail.com on 18 Nov 2008 at 12:09

GoogleCodeExporter commented 9 years ago
This issue is fixed in r1085.

Original comment by kenzotom...@gmail.com on 18 Nov 2008 at 3:18