Added a couple more discussion points.
This commit is contained in:
@ -81,8 +81,9 @@ void _pokerGameActionBetOnEnd(
|
||||
uint8_t j;
|
||||
pokerplayer_t *player;
|
||||
queueaction_t *next;
|
||||
pokergame_t *game = (pokergame_t *)action->data;
|
||||
pokerdiscussiondata_t discussion;
|
||||
bool playersPending;
|
||||
pokergame_t *game = (pokergame_t *)action->data;
|
||||
|
||||
// Go to the next better
|
||||
game->poker.bet.better = (game->poker.bet.better + 1) % POKER_PLAYER_COUNT;
|
||||
@ -110,6 +111,10 @@ void _pokerGameActionBetOnEnd(
|
||||
// No! Begin the next flop.
|
||||
next = pokerActionNextFlopAdd(queue, &game->poker);
|
||||
if(next != NULL) {
|
||||
discussion.reason = POKER_DISCUSSION_REASON_FLOP;
|
||||
discussion.poker = game;
|
||||
pokerDiscussionQueue(&discussion);
|
||||
|
||||
pokerBetResetBetter(&game->poker);
|
||||
pokerGameActionRestackAdd(game);
|
||||
pokerGameActionBetAdd(game);
|
||||
|
@ -34,6 +34,10 @@ void _pokerGameActionRoundOnEnd(queue_t *queue,queueaction_t *action,uint8_t i){
|
||||
|
||||
// Deal
|
||||
pokerActionDealAdd(queue, &game->poker);
|
||||
|
||||
// Speak
|
||||
data.reason = POKER_DISCUSSION_REASON_DEAL;
|
||||
pokerDiscussionQueue(&data);
|
||||
|
||||
// Begin Betting Round. This will queue for one player only and then the round
|
||||
// will take over.
|
||||
|
Reference in New Issue
Block a user