diff options
| author | Random <28494085+Random06457@users.noreply.github.com> | 2020-05-22 14:33:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-22 08:33:10 -0400 |
| commit | 89b0977e39a744838ce7053a40ad3c3e37a2f491 (patch) | |
| tree | 98921654498a18f7ee58e08e2ba0c6396d28408a /src/code/z_map_exp.c | |
| parent | 9a478a96ec3fe329e643383a6a246d5553831158 (diff) | |
Decompile code_8008E6A0.c / Add CHECK_PAD macro (#156)
* Decompile code_8008E6A0.c
* Delete "counter" file
Diffstat (limited to 'src/code/z_map_exp.c')
| -rw-r--r-- | src/code/z_map_exp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/code/z_map_exp.c b/src/code/z_map_exp.c index 729542bea..aea0719ba 100644 --- a/src/code/z_map_exp.c +++ b/src/code/z_map_exp.c @@ -413,7 +413,7 @@ void Minimap_Draw(GlobalContext* globalCtx) { } } - if (!~(globalCtx->state.input[0].press.in.button | ~L_TRIG) && !Gameplay_InCsMode(globalCtx)) { + if (CHECK_PAD(globalCtx->state.input[0].press, L_TRIG) && !Gameplay_InCsMode(globalCtx)) { osSyncPrintf("Game_play_demo_mode_check=%d\n", Gameplay_InCsMode(globalCtx)); // clang-format off if (!R_MINIMAP_TOGGLED) { Audio_PlaySoundGeneral(NA_SE_SY_CAMERA_ZOOM_UP, &D_801333D4, 4, @@ -494,7 +494,7 @@ void Minimap_Draw(GlobalContext* globalCtx) { Minimap_DrawCompassIcons(globalCtx); // Draw icons for the player spawn and current position } - if (!~(globalCtx->state.input[0].press.in.button | ~L_TRIG) && !Gameplay_InCsMode(globalCtx)) { + if (CHECK_PAD(globalCtx->state.input[0].press, L_TRIG) && !Gameplay_InCsMode(globalCtx)) { // clang-format off if (!R_MINIMAP_TOGGLED) { Audio_PlaySoundGeneral(NA_SE_SY_CAMERA_ZOOM_UP, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8); } |
