summaryrefslogtreecommitdiffhomepage
path: root/draw
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-06-05 12:55:53 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-06-05 12:55:53 +0200
commit5b4c0fa56cd0719db8662258a52fe7e8bc2c8d05 (patch)
treee934a1921abe77cd88bb1f9e1dfdcd089bba9cab /draw
parenta4261d25e5f191184dbc37c32346343c5cb5b166 (diff)
disable broken drawing multiple scenery at once
Diffstat (limited to 'draw')
-rw-r--r--draw/anim.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/draw/anim.cpp b/draw/anim.cpp
index 19a71ac3..1c593ded 100644
--- a/draw/anim.cpp
+++ b/draw/anim.cpp
@@ -134,10 +134,10 @@ void anim_mesh::draw(tile_shader& shader, const Vector2i& win_size, chunk& c, Ar
fm_assert(e.is_dynamic() == (x.mesh_idx == (uint32_t)-1));
if (!e.is_dynamic())
{
-#if 1 // todo! recalc it when chunk's object list changes!
+#if 0 // todo! broken
const auto r = get_contig_draw_len(es, k);
#else
- constexpr auto r = minmax_s{1, x.mesh_idx};
+ const auto r = minmax_s{1, x.mesh_idx};
#endif
uint32_t count = r.len;
GL::MeshView mesh{mesh_};