From 02a485860fa36aecf93026b1f7c8014746516f35 Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Tue, 24 Aug 2021 10:24:26 -0700 Subject: [PATCH] Got the look action working. --- src/game/poker/actions/bet.c | 4 ---- src/game/poker/actions/look.c | 1 + src/game/poker/discussion/pokerdiscussion.c | 4 ++-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/game/poker/actions/bet.c b/src/game/poker/actions/bet.c index f9fdb2b3..bb1a9b2f 100644 --- a/src/game/poker/actions/bet.c +++ b/src/game/poker/actions/bet.c @@ -16,10 +16,6 @@ void _pokerGameActionBetOnUpdate( pokergame_t *game = (pokergame_t *)action->data; pokerplayer_t *player; - // As of right now the queue should basically be empty besides this item, so - // let's restack - queueRestack(queue); - // Are they human? player = game->poker.players + game->poker.bet.better; isHuman = game->poker.bet.better == POKER_PLAYER_HUMAN_INDEX; diff --git a/src/game/poker/actions/look.c b/src/game/poker/actions/look.c index ce16a892..1b4b44b3 100644 --- a/src/game/poker/actions/look.c +++ b/src/game/poker/actions/look.c @@ -14,6 +14,7 @@ void _pokerGameActionLookOnStart( pokergame_t *game = (pokergame_t *)action->data; pokergameactiondata_t *data = game->actionData + i; printf("Looking at %u\n", data->lookAtPlayer); + pokerWorldLookAtPlayer(&game->scene, data->lookAtPlayer); queueNext(queue); } diff --git a/src/game/poker/discussion/pokerdiscussion.c b/src/game/poker/discussion/pokerdiscussion.c index 76434bf8..c401e9ce 100644 --- a/src/game/poker/discussion/pokerdiscussion.c +++ b/src/game/poker/discussion/pokerdiscussion.c @@ -28,7 +28,7 @@ void pokerDiscussionGet( case POKER_DISCUSSION_REASON_ROUND_START: discussion->count++; discussion->messages[0] = "Round Start"; - discussion->players[0] = 0; + discussion->players[0] = 1; discussion->emotions[0] = VN_CHARACTER_EMOTION_XXXX_THINKING10; break; @@ -36,7 +36,7 @@ void pokerDiscussionGet( default: discussion->count++; discussion->messages[0] = "Hmm, this seems to be an error message."; - discussion->players[0] = 0; + discussion->players[0] = 2; discussion->emotions[0] = VN_CHARACTER_EMOTION_CONCERNED_WORRIED; break; }