From ea09c317db4d243e064da095370545e43ff4c0c7 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 3 Dec 2022 08:12:24 +0100 Subject: editor: simplify find_clickable_scenery --- src/scenery.cpp | 2 +- src/scenery.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); }; -- cgit v1.2.3