Commit 68f8b579 authored by Chris's avatar Chris
Browse files

removed debug outputs for hold_dice_with_menu()

parent d9434724
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -193,7 +193,6 @@ unsigned int can_continue_playing(struct scorecard_st *scorecard) {

void hold_dice_with_menu(struct die_st *dice, unsigned int num_dice) {
    menu_item dice_hold_selections[num_dice];
    printf("initializing hold dice menu\n");
    for (int i = 0; i < num_dice; i++) {
        int human_readable_i = i + 1;
        dice_hold_selections[i].title = malloc(21 * sizeof(char));
@@ -206,15 +205,13 @@ void hold_dice_with_menu(struct die_st *dice, unsigned int num_dice) {
        dice_hold_selections[i].command = malloc(13 * sizeof(char));
        sprintf(dice_hold_selections[i].command, "toggle_hold_%1d", i);
    }
    printf("prompting hold dice menu\n");
    menu_prompt_multi_select(dice_hold_selections, num_dice);
//    menu_prompt(dice_hold_selections, num_dice);
    printf("done prompting hold dice menu; saving selections\n");
    for (unsigned int i = 0; i < num_dice; i++) {
        dice[i].held = dice_hold_selections[i].multi_selected;
    }
    printf("hold_dice_with_menu() done\n");

    // cleanup of dynamically allocated items in menu struct
    for (int i = 0; i < num_dice; i++) {
        if (dice_hold_selections[i].title) {
            free(dice_hold_selections[i].title);