summaryrefslogtreecommitdiffhomepage
path: root/draw/anim.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-18 01:45:19 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-03-19 14:32:18 +0100
commit151e6911a8aa56749edbbf0c15ab04752d96c2f3 (patch)
tree06fcf3d6551d1945b5717458aa09222c947ede04 /draw/anim.cpp
parente77dc91b5d3e6a5181776a81cee2c3164c7b3cc9 (diff)
ccc
Diffstat (limited to 'draw/anim.cpp')
-rw-r--r--draw/anim.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/draw/anim.cpp b/draw/anim.cpp
index c6632fa1..5c1f61a7 100644
--- a/draw/anim.cpp
+++ b/draw/anim.cpp
@@ -33,10 +33,10 @@ std::array<UnsignedShort, 6> anim_mesh::make_index_array()
}
void anim_mesh::add_clickable(tile_shader& shader, const Vector2i& win_size,
- object* s_, const chunk::topo_sort_data& data,
+ object* sʹ, const chunk::topo_sort_data& data,
Array<clickable>& list)
{
- const auto& s = *s_;
+ const auto& s = *sʹ;
const auto& a = *s.atlas;
const auto& g = a.group(s.r);
const auto& f = a.frame(s.r, s.frame);
@@ -49,7 +49,7 @@ void anim_mesh::add_clickable(tile_shader& shader, const Vector2i& win_size,
.src = { f.offset, f.offset + f.size },
.dest = { offset, offset + Vector2i(f.size) },
.bitmask = a.bitmask(),
- .e = s_,
+ .e = sʹ,
.depth = s.ordinal() + (float)s.coord.z() * TILE_COUNT,
.slope = data.slope,
.bb_min = data.bb_min, .bb_max = data.bb_max,