From ade4a509e9ca19176ea560fd369e46370c4b0955 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 20 Sep 2022 13:51:08 +0200 Subject: [PATCH] Minor code style fixes --- src/menu/src/gamecfg_menu.c | 2 -- src/menu/src/menu.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/menu/src/gamecfg_menu.c b/src/menu/src/gamecfg_menu.c index 9fc3873..2cdd48f 100644 --- a/src/menu/src/gamecfg_menu.c +++ b/src/menu/src/gamecfg_menu.c @@ -77,10 +77,8 @@ int menu_gamecfg(struct menu_common *const c) gui_add_child(&m.bcnt.common, &m.back.common); while (!back && !c->p.common.exit && !start) - { if (menu_update(c, update, render, &m)) return -1; - } if (start) return game(NULL); diff --git a/src/menu/src/menu.c b/src/menu/src/menu.c index a8df6e9..200023c 100644 --- a/src/menu/src/menu.c +++ b/src/menu/src/menu.c @@ -66,7 +66,7 @@ int menu(void) struct menu_common c = {0}; if (game_resinit()) - return -1; + return -1; cursor_init(&c.cam.cursor); peripheral_init(&cfg, &c.p);