summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-05-03 12:12:37 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-05-05 03:16:21 +0200
commitccb4b508c39e29a7087ba69fe5cca9ef2cd79a25 (patch)
tree1b8499704051ec7c044232957a763c6120e85b0f
parentd2b1cd8033c7fa9472e2f9f7264d1d3b9f73169b (diff)
d
-rw-r--r--editor/tests/raycast-test.cpp8
-rw-r--r--src/chunk-collision.cpp2
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)