diff options
| author | engineer124 <47598039+engineer124@users.noreply.github.com> | 2024-02-02 09:00:27 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-01 17:00:27 -0500 |
| commit | 1e21f69b376708d02de8445d574a20fbfe2c63c0 (patch) | |
| tree | 2675be7c2eab072a9d8fbac3215a08ec1dd8eb92 /src/code/graph.c | |
| parent | 64dd475a3af76b78c3ed6ef9282e556c69fb28c8 (diff) | |
z_play retail OK (#1688)
* z_play OK
* cleanup spacing
* PR
Diffstat (limited to 'src/code/graph.c')
| -rw-r--r-- | src/code/graph.c | 12 |
1 files changed, 2 insertions, 10 deletions
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 |
