diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-21 21:11:33 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-21 21:11:33 +0200 |
| commit | df2073a5692c991e4fc43c926334983997d272af (patch) | |
| tree | 60d959c0e1dd97f0b4e63eacc60c162fc4a3e670 /main/update.cpp | |
| parent | 04ee43ea683f5b9b591e10409b5e5a622e8a198a (diff) | |
lots of refactoring types crap
Diffstat (limited to 'main/update.cpp')
| -rw-r--r-- | main/update.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/update.cpp b/main/update.cpp index fac359e8..00e59434 100644 --- a/main/update.cpp +++ b/main/update.cpp @@ -7,7 +7,7 @@ void app::make_test_chunk(chunk& c) constexpr auto N = TILE_MAX_DIM; for (auto [x, k, pt] : c) { const auto& atlas = pt.x != pt.y && (pt.x == N/2 || pt.y == N/2) ? floor2 : floor1; - x.ground_image = { atlas, (std::uint8_t)(k % atlas->num_tiles()) }; + x.ground_image = { atlas, k % atlas->num_tiles() }; } constexpr auto K = N/2; c[{K, K }].wall_north = { wall1, 0 }; |
