aboutsummaryrefslogtreecommitdiff
path: root/src/game/game.c
diff options
context:
space:
mode:
authorSopár Adrián <adrian.sopar@protonmail.com>2024-06-28 22:23:33 +0200
committerSopár Adrián <adrian.sopar@protonmail.com>2024-06-28 22:23:33 +0200
commit2fd912ad83dc15f588b3fce8635b8365233fee82 (patch)
tree412ba7396e4b8693fbb6250a3bb4d669d57ec59d /src/game/game.c
parent05133e09243ca4cdea8051755ccfc5ff8b796f59 (diff)
Let the user switch between map and real life mode.
Diffstat (limited to 'src/game/game.c')
-rw-r--r--src/game/game.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/game.c b/src/game/game.c
index a9ac239..a5f4ce0 100644
--- a/src/game/game.c
+++ b/src/game/game.c
@@ -83,6 +83,7 @@ struct game_state *create_game_state(struct maze *maze)
display->maze = maze;
display->player_pos = maze->starting_point;
display->display_player_path = true;
+ display->visible = false;
//Signs
int signs_length = sizeof_2d(maze->width, maze->height, sizeof(int));
display->signs = malloc(signs_length);