diff options
| author | Sopár Adrián <adrian.sopar@protonmail.com> | 2024-06-28 22:23:33 +0200 |
|---|---|---|
| committer | Sopár Adrián <adrian.sopar@protonmail.com> | 2024-06-28 22:23:33 +0200 |
| commit | 2fd912ad83dc15f588b3fce8635b8365233fee82 (patch) | |
| tree | 412ba7396e4b8693fbb6250a3bb4d669d57ec59d /src/game/operations.c | |
| parent | 05133e09243ca4cdea8051755ccfc5ff8b796f59 (diff) | |
Let the user switch between map and real life mode.
Diffstat (limited to 'src/game/operations.c')
| -rw-r--r-- | src/game/operations.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game/operations.c b/src/game/operations.c index aa9424f..7ba3319 100644 --- a/src/game/operations.c +++ b/src/game/operations.c @@ -75,6 +75,12 @@ enum op_res turn_display_switch(struct game_state *state, int data) return OPR_NONE; } +enum op_res turn_visible(struct game_state *state, int data) +{ + state->display->visible = !state->display->visible; + return OPR_NONE; +} + enum op_res new_random(struct game_state *state, int data) { struct maze_display *display = state->display; @@ -141,4 +147,4 @@ enum op_res start_command_prompt(struct game_state *state, int data) } } return OPR_NONE; -}
\ No newline at end of file +} |
