From a59ca6b1ce578cfd2dfb9b0094d24371c7c23c7b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 7 Jun 2024 00:37:47 +0200 Subject: d --- editor/tests/hole-test.cpp | 2 +- src/hole.cpp | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/editor/tests/hole-test.cpp b/editor/tests/hole-test.cpp index bc422b2a..7b6041b2 100644 --- a/editor/tests/hole-test.cpp +++ b/editor/tests/hole-test.cpp @@ -56,7 +56,7 @@ constexpr auto colors = std::array{ 0x6dd4ff_rgbf, // rect 8 }; -void hole_test::draw_ui(app& a, float) +void hole_test::draw_ui(app&, float) { using Cr = CutResult; using bbox = Cr::bbox; diff --git a/src/hole.cpp b/src/hole.cpp index 6a48e57b..d3058d1a 100644 --- a/src/hole.cpp +++ b/src/hole.cpp @@ -34,20 +34,19 @@ bool hole_proto::operator==(const object_proto& oʹ) const hole_proto::hole_proto() { atlas = loader.vobj("hole"_s).atlas; + pass = pass_mode::pass; type = object_type::hole; } hole::hole(object_id id, floormat::chunk& c, const hole_proto& proto): object{id, c, proto}, height{proto.height}, flags{proto.flags} { - } hole::~hole() noexcept { if (c->is_teardown()) [[unlikely]] return; - mark_chunk_modified(); } @@ -64,8 +63,8 @@ hole::operator hole_proto() const void hole::mark_chunk_modified() { - c->mark_ground_modified(); // todo conditionalize - c->mark_walls_modified(); // todo conditionalize + //c->mark_ground_modified(); // todo! + //c->mark_walls_modified(); // todo! c->mark_passability_modified(); } -- cgit v1.2.3