From 4fac6e94bf54da24ce7de0157e23f494cffb4410 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 13 Dec 2023 01:57:35 +0100 Subject: b --- src/wall-atlas.cpp | 1 - wall-tileset-tool/main.cpp | 4 +--- 2 files changed, 1 insertion(+), 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) { -- cgit v1.2.3