diff options
| -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) { |
