diff options
author | HampusM <hampus@hampusmat.com> | 2022-02-18 19:31:03 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-02-18 19:31:03 +0100 |
commit | e206dc1cf625f28149c19eb4dfcbf495ef0efbb4 (patch) | |
tree | bdcc6152dbce14f27a17b1a33814b0f8e365969f /src/mazerator.cpp | |
parent | 3e4d91b6b029374813cfd0900db1fa8984ad7aa3 (diff) |
Diffstat (limited to 'src/mazerator.cpp')
-rw-r--r-- | src/mazerator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mazerator.cpp b/src/mazerator.cpp index a073615..6866aaa 100644 --- a/src/mazerator.cpp +++ b/src/mazerator.cpp @@ -59,7 +59,7 @@ unsigned int get_uint_optarg(char arg, bool check_zero = false) } } // namespace -const std::array<option, 8> options = { +constexpr std::array<option, 8> options = { option({"width", required_argument, nullptr, 'w'}), option({"height", required_argument, nullptr, 'h'}), option({"wall", required_argument, nullptr, 'W'}), @@ -75,7 +75,7 @@ int main(int argc, char *argv[]) AppOptions app_options; - BoundsOpts default_maze_bounds = {DEFAULT_MAZE_WIDTH, DEFAULT_MAZE_HEIGHT}; + BoundsOptions default_maze_bounds = {DEFAULT_MAZE_WIDTH, DEFAULT_MAZE_HEIGHT}; app_options.maze_bounds = std::make_shared<Bounds>(default_maze_bounds); @@ -177,7 +177,7 @@ int main(int argc, char *argv[]) app_options.random_gen->in_range(0, app_options.maze_bounds->height() - 1U)); } - Vector2Opts start_coords = {.x = *start_x, .y = *start_y}; + Vector2Options start_coords = {.x = *start_x, .y = *start_y}; app_options.start_coords = std::make_shared<Vector2>(start_coords); |