diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-29 01:28:12 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-29 01:28:12 +0200 |
commit | b0069421278d6fc3fac0153e2f19c549c7bfce32 (patch) | |
tree | 2104e6dbf45bcd9fbedf1dd144cfdec4f0dbfc1e /draw | |
parent | b6a42cc53f808c86342d1bcd400ea95e6e7f5762 (diff) |
a
Diffstat (limited to 'draw')
-rw-r--r-- | draw/floor.cpp | 6 |
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); } |