diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-07 22:46:30 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-07 23:22:53 +0200 |
| commit | 4a818328b3041afdd3be384beba41413d044c2de (patch) | |
| tree | d2fdc982dc7aa27259d52fb698baed1e9e07df47 /src/object.cpp | |
| parent | b59abcd07e8c9bd2c79061f8cfc827a43c9408ef (diff) | |
wa
Diffstat (limited to 'src/object.cpp')
| -rw-r--r-- | src/object.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/object.cpp b/src/object.cpp index a3df2ef9..89988747 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -9,6 +9,7 @@ #include "compat/debug.hpp" #include "compat/exception.hpp" #include "compat/limits.hpp" +#include "compat/non-const.hpp" #include "nanosecond.inl" #include <cmath> #include <algorithm> @@ -71,9 +72,11 @@ object::~object() noexcept fm_debug_assert(id); if (c->is_teardown()) [[unlikely]] return; +#if 0 if (chunk::bbox bb; c->_bbox_for_scenery(*this, bb)) c->_remove_bbox(bb); - c->_world->do_kill_object(id); +#endif + c->_world->erase_object(id); const_cast<object_id&>(id) = 0; } @@ -357,10 +360,8 @@ bool object::is_virtual() const { return false; } point object::position() const { return {coord, offset}; } object_type object::type_of() const noexcept { return type(); } -bool object::is_dynamic() const -{ - return atlas->info().fps > 0; -} +bool object::is_dynamic() const { return atlas->info().fps > 0; } +bool object::updates_passability() const { return false; } void object::init_script(const std::shared_ptr<object>&) {} void object::destroy_script_pre(const std::shared_ptr<object>&, script_destroy_reason) {} |
