diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-04 18:57:29 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-04 18:57:29 +0200 |
| commit | f0c7d4d241d7b415e4ba0ef2c0198e127d789ef4 (patch) | |
| tree | 6678a51b981a75c400e24e286f02ece3101671f9 /main.cpp | |
| parent | b47d96ccd1ef1f424154511f7294ab969bd4f5ca (diff) | |
a
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; } |
