summaryrefslogtreecommitdiffhomepage
path: root/src/hole.cpp
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 /src/hole.cpp
parentd74ef616fb7ad81e56116f69af265ea51cf91d04 (diff)
d
Diffstat (limited to 'src/hole.cpp')
-rw-r--r--src/hole.cpp7
1 files changed, 3 insertions, 4 deletions
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();
}