summaryrefslogtreecommitdiffhomepage
path: root/main
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-30 14:47:23 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-10-30 14:47:23 +0100
commit71fc237af1a53fd73c4a74ed597d582d8dccdf12 (patch)
tree0a9670d12856557beeb1ab56955d6a45a4ccb14f /main
parentd4d578596a41742b28005f418f37e5a4fe2cd8b3 (diff)
reformat
Diffstat (limited to 'main')
-rw-r--r--main/draw.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/draw.cpp b/main/draw.cpp
index 2909d952..533d09ca 100644
--- a/main/draw.cpp
+++ b/main/draw.cpp
@@ -83,8 +83,7 @@ bool main_impl::check_chunk_visible(const Vector2d& offset, const Vector2i& size
p10 = tile_shader::project(Vector3d(len[x], 0, 0)),
p01 = tile_shader::project(Vector3d(0, len[y], 0)),
p11 = tile_shader::project(Vector3d(len[x], len[y], 0));
- constexpr auto xx = std::minmax({ p00[x], p10[x], p01[x], p11[x], }),
- yy = std::minmax({ p00[y], p10[y], p01[y], p11[y], });
+ constexpr auto xx = std::minmax({ p00[x], p10[x], p01[x], p11[x], }), yy = std::minmax({ p00[y], p10[y], p01[y], p11[y], });
constexpr auto minx = xx.first, maxx = xx.second, miny = yy.first, maxy = yy.second;
constexpr int W = (int)(maxx - minx + .5 + 1e-16), H = (int)(maxy - miny + .5 + 1e-16);
const auto X = (int)(minx + (offset[x] + size[x])*.5), Y = (int)(miny + (offset[y] + size[y])*.5);