From 1e21f69b376708d02de8445d574a20fbfe2c63c0 Mon Sep 17 00:00:00 2001 From: engineer124 <47598039+engineer124@users.noreply.github.com> Date: Fri, 2 Feb 2024 09:00:27 +1100 Subject: z_play retail OK (#1688) * z_play OK * cleanup spacing * PR --- src/code/graph.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/code/graph.c') diff --git a/src/code/graph.c b/src/code/graph.c index f2e2775e0..36cfa633d 100644 --- a/src/code/graph.c +++ b/src/code/graph.c @@ -421,22 +421,14 @@ void Graph_Update(GraphicsContext* gfxCtx, GameState* gameState) { if (gIsCtrlr2Valid && CHECK_BTN_ALL(gameState->input[0].press.button, BTN_Z) && CHECK_BTN_ALL(gameState->input[0].cur.button, BTN_L | BTN_R)) { gSaveContext.gameMode = GAMEMODE_NORMAL; - { - GameState* state = gameState; - - SET_NEXT_GAMESTATE(state, MapSelect_Init, MapSelectState); - } + SET_NEXT_GAMESTATE(gameState, MapSelect_Init, MapSelectState); gameState->running = false; } if (gIsCtrlr2Valid && PreNmiBuff_IsResetting(gAppNmiBufferPtr) && !gameState->inPreNMIState) { // "To reset mode" PRINTF(VT_COL(YELLOW, BLACK) "PRE-NMIによりリセットモードに移行します\n" VT_RST); - { - GameState* state = gameState; - - SET_NEXT_GAMESTATE(state, PreNMI_Init, PreNMIState); - } + SET_NEXT_GAMESTATE(gameState, PreNMI_Init, PreNMIState); gameState->running = false; } #endif -- cgit v1.2.3