diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-15 15:43:59 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-15 15:43:59 +0100 |
commit | 23eae734c5e8a49c02e48fe0b401d610abfee9c8 (patch) | |
tree | 02311af36b8c2a10f8b69543b7b38e498bd42bd8 /src/chunk.cpp | |
parent | 2e0c0009806860e4e8ac24663afdc5d926d1213f (diff) |
a
Diffstat (limited to 'src/chunk.cpp')
-rw-r--r-- | src/chunk.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chunk.cpp b/src/chunk.cpp index 7f8623dc..f4ba079d 100644 --- a/src/chunk.cpp +++ b/src/chunk.cpp @@ -107,7 +107,7 @@ bool chunk::bbox::operator==(const bbox& other) const noexcept = default; void chunk::add_entity_unsorted(const std::shared_ptr<entity>& e) { - if (e->atlas->info().fps == 0) + if (!e->is_dynamic()) mark_scenery_modified(false); if (bbox bb; _bbox_for_scenery(*e, bb)) _add_bbox(bb); @@ -140,7 +140,7 @@ void chunk::add_entity(const std::shared_ptr<entity>& e) void chunk::remove_entity(entity_const_iterator it) { const auto& e = *it; - if (e->atlas->info().fps == 0) + if (!e->is_dynamic()) mark_scenery_modified(false); if (bbox bb; _bbox_for_scenery(*e, bb)) _remove_bbox(bb); |