diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-13 01:57:35 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-13 01:57:35 +0100 |
commit | 4fac6e94bf54da24ce7de0157e23f494cffb4410 (patch) | |
tree | 62ff73c9b78798bb9070103d1cd9dac692fb1001 | |
parent | af0d85d8d44928ad8e5616a6abce90f37e07378e (diff) |
b
-rw-r--r-- | src/wall-atlas.cpp | 1 | ||||
-rw-r--r-- | wall-tileset-tool/main.cpp | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/wall-atlas.cpp b/src/wall-atlas.cpp index 568aee83..2486eafd 100644 --- a/src/wall-atlas.cpp +++ b/src/wall-atlas.cpp @@ -175,7 +175,6 @@ auto wall_atlas::calc_direction(Direction_ dir) const -> const Direction& break; case Direction_::COUNT: std::unreachable(); - break; } fm_abort("wall_atlas: can't find direction '%d'", (int)dir); } diff --git a/wall-tileset-tool/main.cpp b/wall-tileset-tool/main.cpp index 128b21d2..38697d9c 100644 --- a/wall-tileset-tool/main.cpp +++ b/wall-tileset-tool/main.cpp @@ -244,9 +244,7 @@ bool do_direction(state& st, size_t i) atlas.direction_mask[i] = 1; atlas.direction_map[i] = DirArrayIndex{(uint8_t)dir_idx}; - auto dir = Direction { - .passability = old_dir.passability, - }; + auto dir = Direction{}; for (auto [_str, ptr, tag] : Direction::groups) { |