summaryrefslogtreecommitdiffhomepage
path: root/main/update.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-22 18:11:16 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-22 18:11:35 +0200
commited4c0046d0c7fbb6a33fc13b508a2a3a6f512809 (patch)
treece1be4274bb41c0757dc1d10575253664124360c /main/update.cpp
parent7d58a11540c90ed8c7417e825d2bae902e8c478a (diff)
more cruft
Diffstat (limited to 'main/update.cpp')
-rw-r--r--main/update.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/main/update.cpp b/main/update.cpp
index 00e59434..172b2ebd 100644
--- a/main/update.cpp
+++ b/main/update.cpp
@@ -2,13 +2,22 @@
namespace floormat {
+//#define TEST_NO_BINDINGS
+
void app::make_test_chunk(chunk& c)
{
constexpr auto N = TILE_MAX_DIM;
for (auto [x, k, pt] : c) {
+#ifdef TEST_NO_BINDINGS
+ const auto& atlas = floor1;
+#else
const auto& atlas = pt.x != pt.y && (pt.x == N/2 || pt.y == N/2) ? floor2 : floor1;
+#endif
x.ground_image = { atlas, k % atlas->num_tiles() };
}
+#ifdef TEST_NO_BINDINGS
+ const auto& wall1 = floor1, wall2 = floor1;
+#endif
constexpr auto K = N/2;
c[{K, K }].wall_north = { wall1, 0 };
c[{K, K }].wall_west = { wall2, 0 };