summaryrefslogtreecommitdiffhomepage
path: root/draw
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-16 08:30:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-17 23:23:11 +0100
commitfd9298ef43136fa89dab034096690a08027ebf44 (patch)
tree312aefb9cddd02511ec09bbce9aa2bf495a42e8c /draw
parentea37d1030186f76b88f189f6ea0cc2b2d57a985a (diff)
a
Diffstat (limited to 'draw')
-rw-r--r--draw/anim.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/draw/anim.cpp b/draw/anim.cpp
index 47d84a97..4af20b8f 100644
--- a/draw/anim.cpp
+++ b/draw/anim.cpp
@@ -79,11 +79,13 @@ void anim_mesh::draw(tile_shader& shader, chunk& c)
auto& atlas = *e.atlas;
if (last && &atlas != last.atlas)
{
+ //Debug{} << "draw-static" << last.atlas->name() << e.ordinal() << Vector2i(e.coord.local());
do_draw(last.run_from, i, last.atlas);
last = nullptr;
}
if (e.is_dynamic())
{
+ //Debug{} << "draw-dyn" << e.atlas->name() << e.ordinal() << Vector2i(e.coord.local());
draw(shader, atlas, e.r, e.frame, e.coord.local(), e.offset, tile_shader::scenery_depth_offset);
last = nullptr;
}
@@ -95,7 +97,12 @@ void anim_mesh::draw(tile_shader& shader, chunk& c)
}
}
if (last)
+ {
+ //Debug{} << "draw-last" << last.atlas->name() << es[es.size()-1]->ordinal() << Vector2i(es[es.size()-1]->coord.local());
do_draw(last.run_from, i, last.atlas);
+ }
+
+ //Debug{} << "--" << i << "--";
//#define FM_DEBUG_DRAW_COUNT
#ifdef FM_DEBUG_DRAW_COUNT