diff options
-rw-r--r-- | editor/tests/raycast-test.cpp | 8 | ||||
-rw-r--r-- | src/chunk-collision.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/editor/tests/raycast-test.cpp b/editor/tests/raycast-test.cpp index 383264e7..d1f72b70 100644 --- a/editor/tests/raycast-test.cpp +++ b/editor/tests/raycast-test.cpp @@ -45,10 +45,10 @@ void print_vec2(auto&& buf, Vector2 vec) void do_column(StringView name) { - ImGui::TableNextRow(); - ImGui::TableNextColumn(); - text(name); - ImGui::TableNextColumn(); + ImGui::TableNextRow(); + ImGui::TableNextColumn(); + text(name); + ImGui::TableNextColumn(); } struct raycast_test final : base_test diff --git a/src/chunk-collision.cpp b/src/chunk-collision.cpp index a7df3032..13c9faef 100644 --- a/src/chunk-collision.cpp +++ b/src/chunk-collision.cpp @@ -110,7 +110,7 @@ void chunk::_replace_bbox(const bbox& x0, const bbox& x1, bool b0, bool b1) if (_pass_modified) return; - unsigned i = (unsigned)b1 << 1 | (unsigned)!!b0 << 0; + unsigned i = (unsigned)b1 << 1 | (unsigned)b0 << 0; CORRADE_ASSUME(i < 4u); (void)0; switch (i) |