diff options
Diffstat (limited to 'src/game.c')
| -rw-r--r-- | src/game.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); } |
