From 564362713bbcb8e40dea9aa2719ad7ce2b6403f5 Mon Sep 17 00:00:00 2001 From: pk910 Date: Mon, 12 Nov 2012 13:22:59 +0100 Subject: [PATCH] fixed some small things in blackjack game --- src/modules/NeonFun.mod/cmd_neonfun.c | 1 + src/modules/NeonFun.mod/game_blackjack.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/modules/NeonFun.mod/cmd_neonfun.c b/src/modules/NeonFun.mod/cmd_neonfun.c index 1fd1199..9bf3b4b 100644 --- a/src/modules/NeonFun.mod/cmd_neonfun.c +++ b/src/modules/NeonFun.mod/cmd_neonfun.c @@ -78,6 +78,7 @@ static const struct default_language_entry msgtab[] = { {"NF_BJ_USER_JOINED", "$b%s$b has joined the game."}, /* {ARGS: "TestUser"} */ {"NF_BJ_CREATED", "$b%s$b started a BlackJack game. Type $b+bj$b to join the game."}, /* {ARGS: "TestUser"} */ {"NF_BJ_ERROR", "BlackJack program error. Please contact a bot administrator. (ErrCode: %d)"}, /* {ARGS: 0} */ + {"NF_BJ_NOT_YOUR_TURN", "Wait your turn!"}, {"NF_BJ_START", "GAME START"}, {"NF_BJ_USER_HURRY_UP", "$b%s$b, it's your turn! You can take a card with $bbjtake$b or stop playing with $bbjenough$b"}, /* {ARGS: "TestUser"} */ {"NF_BJ_TAKE", "You took another card: %s (%d points)."}, /* {ARGS: "[♠A]", 11} */ diff --git a/src/modules/NeonFun.mod/game_blackjack.c b/src/modules/NeonFun.mod/game_blackjack.c index 6c69934..f49cae1 100644 --- a/src/modules/NeonFun.mod/game_blackjack.c +++ b/src/modules/NeonFun.mod/game_blackjack.c @@ -201,6 +201,7 @@ int bj_get_player_card_points(struct bj_player *player) { static void bj_print_player_cards(struct bj_player *player, char *cards_buf) { struct bj_card *card; int cards_bufpos = 0; + cards_buf[0] = '\0'; for(card = player->cards; card; card = card->next) { int cardcolor = 1; char *cardchar = ""; -- 2.20.1