aboutsummaryrefslogtreecommitdiffstats
path: root/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.c b/src/game.c
index e2cf7e8..9d7686f 100644
--- a/src/game.c
+++ b/src/game.c
@@ -83,7 +83,7 @@ void initGame(Game* game)
game->player.position = Vector3Scale(game->world.size, 0.5);
// Map.
- initMap(&game->map, &game->settings);
+ initMap(&game->map, &game->world, &game->settings);
disableGameCursor(game);
}
@@ -239,6 +239,7 @@ void closeGame(Game* game)
UnloadTexture(game->skybox.materials[0].maps[MATERIAL_MAP_CUBEMAP].texture);
UnloadModel(game->skybox);
freeWorld(game->world);
+ closeMap(&game->map);
CloseWindow();
}