Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
sthalik committed Nov 26, 2023
1 parent 5689253 commit 143b205
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/wall-atlas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ void test_read_groups(StringView filename)
fm_assert(!is_direction_defined(read_direction_metadata(jroot, Direction_::S)));

const auto dir = read_direction_metadata(jroot, Direction_::W);
fm_assert(is_direction_defined(dir));
fm_assert(dir.passability == pass_mode::shoot_through);
fm_assert(dir.wall.pixel_size == Vector2ui{} );
fm_assert(dir.wall.default_tint == false );
Expand Down
3 changes: 3 additions & 0 deletions wall-tileset-tool/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ bool do_direction(state& st, size_t i)

for (auto [_str, ptr, tag] : Direction::groups)
{
const auto& old_group = old_dir.*ptr;
if (!old_group.is_defined)
continue;
if (!do_group(st, i, (size_t)tag, dir.*ptr))
return false;
}
Expand Down

0 comments on commit 143b205

Please sign in to comment.