summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-06-07 00:37:47 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-06-07 00:37:47 +0200
commita59ca6b1ce578cfd2dfb9b0094d24371c7c23c7b (patch)
tree9f72667cc212eb761a354473e81de59cd4af75fd
parentd74ef616fb7ad81e56116f69af265ea51cf91d04 (diff)
d
-rw-r--r--editor/tests/hole-test.cpp2
-rw-r--r--src/hole.cpp7
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<Int>;
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();
}