Commit f8a2378d authored by Florian Oetke's avatar Florian Oetke
Browse files

fixed another clang compiler error

parent e7570b44
Pipeline #3290 passed with stage
in 3 minutes and 48 seconds
......@@ -125,19 +125,19 @@ namespace phase_shifter::level {
auto min_x = std::clamp(
static_cast<std::size_t>(std::floor(origin.x / tile_size - radius / tile_size - 0.5f)),
(std::size_t) 0,
static_cast<std::size_t>(0),
level_size_x - 1);
auto min_y = std::clamp(
static_cast<std::size_t>(std::floor(origin.y / tile_size - radius / tile_size - 0.5f)),
(std::size_t) 0,
static_cast<std::size_t>(0),
level_size_y - 1);
auto max_x = std::clamp(
static_cast<std::size_t>(std::ceil(origin.x / tile_size + radius / tile_size + 0.5f)),
(std::size_t) 0,
static_cast<std::size_t>(0),
level_size_x - 1);
auto max_y = std::clamp(
static_cast<std::size_t>(std::ceil(origin.y / tile_size + radius / tile_size + 0.5f)),
(std::size_t) 0,
static_cast<std::size_t>(0),
level_size_y - 1);
for(auto y = min_y; y <= max_y; y++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment