summaryrefslogtreecommitdiffhomepage
path: root/draw
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-29 01:28:12 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-29 01:28:12 +0200
commitb0069421278d6fc3fac0153e2f19c549c7bfce32 (patch)
tree2104e6dbf45bcd9fbedf1dd144cfdec4f0dbfc1e /draw
parentb6a42cc53f808c86342d1bcd400ea95e6e7f5762 (diff)
a
Diffstat (limited to 'draw')
-rw-r--r--draw/floor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/draw/floor.cpp b/draw/floor.cpp
index 43bd8ec0..bfba0c00 100644
--- a/draw/floor.cpp
+++ b/draw/floor.cpp
@@ -19,9 +19,9 @@ floor_mesh::floor_mesh()
void floor_mesh::set_tile(quad_data& data, tile& x)
{
- if (x.ground_image)
+ if (x.ground)
{
- auto texcoords = x.ground_image.atlas->texcoords_for_id(x.ground_image.variant);
+ auto texcoords = x.ground.atlas->texcoords_for_id(x.ground.variant);
for (size_t i = 0; i < 4; i++)
data[i] = { texcoords[i] };
}
@@ -58,7 +58,7 @@ void floor_mesh::draw(tile_shader& shader, chunk& c)
};
for (auto& [x, i, pt] : c)
- do_draw(i, x.ground_image.atlas.get());
+ do_draw(i, x.ground.atlas.get());
do_draw(TILE_COUNT, nullptr);
}