summaryrefslogtreecommitdiffhomepage
path: root/editor/tests
diff options
context:
space:
mode:
Diffstat (limited to 'editor/tests')
-rw-r--r--editor/tests/hole-test.cpp2
-rw-r--r--editor/tests/raycast-test.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/editor/tests/hole-test.cpp b/editor/tests/hole-test.cpp
index b419f7e8..06624b01 100644
--- a/editor/tests/hole-test.cpp
+++ b/editor/tests/hole-test.cpp
@@ -131,7 +131,7 @@ void hole_test::draw_ui(app&, float)
}
{
label_left("found", buf, label_width);
- ImGui::Text("%s", res.found ? "true" : "false");
+ ImGui::Text("%s", res.found() ? "true" : "false");
}
ImGui::Unindent(style.FramePadding.x);
diff --git a/editor/tests/raycast-test.cpp b/editor/tests/raycast-test.cpp
index 07b44eaf..a8902145 100644
--- a/editor/tests/raycast-test.cpp
+++ b/editor/tests/raycast-test.cpp
@@ -181,7 +181,7 @@ struct raycast_test final : base_test
{
const char* type;
- switch ((collision_type)result.collider.tag)
+ switch ((collision_type)result.collider.type)
{
using enum collision_type;
default: type = "unknown?!"; break;
@@ -199,7 +199,7 @@ struct raycast_test final : base_test
do_column("collider");
std::snprintf(buf, array_size(buf), "%s @ %" PRIu64,
- type, uint64_t{result.collider.data});
+ type, uint64_t{result.collider.id});
{ auto b = push_style_color(ImGuiCol_Text, 0xffff00ff_rgbaf);
text(buf);
}