summaryrefslogtreecommitdiffhomepage
path: root/main
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-02-24 11:01:05 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-02-24 11:01:05 +0100
commita335d1efbde4f5415632666aaf8f4fd55a30a8bf (patch)
tree89ccadffcd42db2c16aacf65cbe41d04f9a2ba6e /main
parent321b394c397f826dbbda6e617aece10e732daadc (diff)
add non-interactive scenery to clickables
Diffstat (limited to 'main')
-rw-r--r--main/draw.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/draw.cpp b/main/draw.cpp
index 81dd7172..1a9dae26 100644
--- a/main/draw.cpp
+++ b/main/draw.cpp
@@ -122,8 +122,7 @@ void main_impl::draw_world() noexcept
{
const local_coords xy{i};
if (auto [atlas, s] = c[xy].scenery(); atlas)
- if (s.can_activate(*atlas))
- _anim_mesh.add_clickable(_shader, window_size, pos, std::uint8_t(i), atlas, s, _clickable_scenery);
+ _anim_mesh.add_clickable(_shader, window_size, pos, std::uint8_t(i), atlas, s, _clickable_scenery);
}
}
}