diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-03 08:12:24 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-03 08:17:30 +0100 |
commit | ea09c317db4d243e064da095370545e43ff4c0c7 (patch) | |
tree | 9085c2ca1c468cc7edf1f184060a0d5f8b471a21 /src | |
parent | 0ec9ab2a67ba246b50d266376e0cb2819f940960 (diff) |
editor: simplify find_clickable_scenery
Diffstat (limited to 'src')
-rw-r--r-- | src/scenery.cpp | 2 | ||||
-rw-r--r-- | src/scenery.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/scenery.cpp b/src/scenery.cpp index 28884ad8..89c04eec 100644 --- a/src/scenery.cpp +++ b/src/scenery.cpp @@ -50,7 +50,7 @@ scenery::scenery(door_tag_t, const anim_atlas& atlas, rotation r, bool is_open) fm_assert(atlas.group(r).frames.size() >= 2); } -bool scenery::can_activate() const noexcept +bool scenery::can_activate(const anim_atlas&) const noexcept { return interactive; } diff --git a/src/scenery.hpp b/src/scenery.hpp index b94e1d2a..5cfe3827 100644 --- a/src/scenery.hpp +++ b/src/scenery.hpp @@ -49,7 +49,7 @@ struct scenery final bool operator==(const scenery&) const noexcept; - bool can_activate() const noexcept; + bool can_activate(const anim_atlas& anim) const noexcept; bool activate(const anim_atlas& atlas); void update(float dt, const anim_atlas& anim); }; |