fixed some small things in blackjack game
authorpk910 <philipp@zoelle1.de>
Mon, 12 Nov 2012 12:22:59 +0000 (13:22 +0100)
committerpk910 <philipp@zoelle1.de>
Mon, 12 Nov 2012 12:22:59 +0000 (13:22 +0100)
src/modules/NeonFun.mod/cmd_neonfun.c
src/modules/NeonFun.mod/game_blackjack.c

index 1fd1199665cdde0d61012b749efbafa2fa466cf2..9bf3b4b728747babd3a009ba835c4c5fdbbd5d22 100644 (file)
@@ -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: "[&#9824;A]", 11} */
index 6c69934a63c12e45de2ccd948ead6c225d4f464c..f49cae1bc11b884ce9d7f35fbb6bac671e1bb612 100644 (file)
@@ -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 = "";