Added restack to bet action
This commit is contained in:
@ -93,7 +93,9 @@ void _pokerGameActionBetOnEnd(
|
||||
// Are we waiting on any players?
|
||||
if(playersPending) return;
|
||||
|
||||
// Not waiting, restack and do next action.
|
||||
printf("Not waiting on anything!\n");
|
||||
pokerGameActionRestackAdd(game);
|
||||
|
||||
// No! Begin the next flop.
|
||||
next = pokerActionNextFlopAdd(queue, &game->poker);
|
||||
@ -102,9 +104,9 @@ void _pokerGameActionBetOnEnd(
|
||||
pokerGameActionBetAdd(game);
|
||||
return;
|
||||
}
|
||||
|
||||
printf("All betting is done, reveal");
|
||||
|
||||
/** Queue a restack */
|
||||
printf("All betting is done, reveal\n");
|
||||
}
|
||||
|
||||
queueaction_t * pokerGameActionBetAdd(pokergame_t *game) {
|
||||
|
@ -8,6 +8,7 @@
|
||||
#pragma once
|
||||
#include <dawn/dawn.h>
|
||||
#include "action.h"
|
||||
#include "restack.h"
|
||||
#include "../../../poker/turn.h"
|
||||
#include "../../../poker/bet.h"
|
||||
#include "../../../poker/actions/flop.h"
|
||||
|
@ -10,6 +10,8 @@
|
||||
void _pokerGameActionRestackOnStart(
|
||||
queue_t *queue, queueaction_t *action, uint8_t i
|
||||
) {
|
||||
pokergame_t *game = (pokergame_t *)action->data;
|
||||
printf("Restacking\n");
|
||||
pokerGameQueueRestack(game);
|
||||
queueNext(queue);
|
||||
}
|
||||
|
Reference in New Issue
Block a user