summaryrefslogtreecommitdiffhomepage
path: root/main.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-04 18:57:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-04 18:57:29 +0200
commitf0c7d4d241d7b415e4ba0ef2c0198e127d789ef4 (patch)
tree6678a51b981a75c400e24e286f02ece3101671f9 /main.cpp
parentb47d96ccd1ef1f424154511f7294ab969bd4f5ca (diff)
a
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/main.cpp b/main.cpp
index fa312c6d..0f573dc5 100644
--- a/main.cpp
+++ b/main.cpp
@@ -83,9 +83,11 @@ chunk app::make_test_chunk()
const auto& atlas = pt.x > N/2 && pt.y >= N/2 ? floor2 : floor1;
x.ground_image = { atlas, (std::uint8_t)(k % atlas->size()) };
});
- c[{N/2 + 1, N/2}].wall_north = { wall1, 0 };
- c[{N/2, N/2}].wall_north = { wall1, 0 };
- c[{N/2, N/2}].wall_west = { wall1, 0 };
+ constexpr auto C = N/2;
+ c[{C, C}].wall_north = { wall1, 0 };
+ c[{C, C}].wall_west = { floor1, 0 };
+ c[{C, C+1}].wall_north = { wall1, 0 };
+ c[{C+1, C}].wall_west = { floor1, 0 };
return c;
}