summaryrefslogtreecommitdiffhomepage
path: root/src/scenery.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-01 17:23:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-01 17:23:27 +0100
commit257c2420545eb632a53c0fe3cd317be613dcb272 (patch)
tree95dfb97898f84ea60b293e60453bef1c57088fa4 /src/scenery.hpp
parentf6aed5a3ae2e6b2b2eb822deee0a579ca66cd13f (diff)
editor: update bboxes from a central place
Diffstat (limited to 'src/scenery.hpp')
-rw-r--r--src/scenery.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scenery.hpp b/src/scenery.hpp
index 7d2cb502..3a8fb241 100644
--- a/src/scenery.hpp
+++ b/src/scenery.hpp
@@ -81,6 +81,7 @@ struct scenery_ref final {
scenery_ref(struct chunk& c, std::size_t i) noexcept;
scenery_ref(const scenery_ref&) noexcept;
scenery_ref(scenery_ref&&) noexcept;
+ scenery_ref& operator=(const scenery_ref&) = delete;
scenery_ref& operator=(const scenery_proto& proto) noexcept;
operator scenery_proto() const noexcept;
@@ -95,7 +96,7 @@ struct scenery_ref final {
std::shared_ptr<anim_atlas>& atlas;
scenery& frame;
- bool can_activate() noexcept;
+ bool can_activate() const noexcept;
bool activate();
void update(float dt);
void rotate(rotation r);