summaryrefslogtreecommitdiffhomepage
path: root/main/update.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-21 21:11:33 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-21 21:11:33 +0200
commitdf2073a5692c991e4fc43c926334983997d272af (patch)
tree60d959c0e1dd97f0b4e63eacc60c162fc4a3e670 /main/update.cpp
parent04ee43ea683f5b9b591e10409b5e5a622e8a198a (diff)
lots of refactoring types crap
Diffstat (limited to 'main/update.cpp')
-rw-r--r--main/update.cpp2
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 };