diff options
-rw-r--r-- | src/menu.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -59,7 +59,7 @@ _mf_menu_size(void *user_data, int state) { struct _mf_menu *menu = (struct _mf_menu *) user_data; - menu->size = MF_MENU_SIZES_[state]; + menu->size = state; return 0; } @@ -96,8 +96,8 @@ _mf_menu_play(void *user_data) struct _mf_menu *menu = (struct _mf_menu *) user_data; int e; - e = mf_game(menu->seed, menu->size, menu->fow, menu->reveal, - menu->renderer); + e = mf_game(menu->seed, MF_MENU_SIZES_[menu->size], menu->fow, + menu->reveal, menu->renderer); menu->seed = rand(); if (sprintf(menu->seed_buf, "%ld", menu->seed) < 0) { @@ -215,7 +215,7 @@ mf_menu(SDL_Renderer *renderer) maze_color.a = MF_COLOR_MAZE_A; menu.seed = rand(); - menu.size = 15; + menu.size = 0; menu.fow = SDL_TRUE; menu.reveal = SDL_FALSE; menu.renderer = renderer; |