summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-07-24 08:39:01 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-07-27 12:32:37 +0200
commit52d691bf472f57670bc8c9140f35d562340bb894 (patch)
treeeab568f061eb55135331f58d3bb43f1e324c3416 /src
parentcb2693700af90ebbd47d2026d69580b307008393 (diff)
src: switch loop counter from size_t to unsigned
Diffstat (limited to 'src')
-rw-r--r--src/chunk-collision.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chunk-collision.cpp b/src/chunk-collision.cpp
index ec6f4ff2..c7f38028 100644
--- a/src/chunk-collision.cpp
+++ b/src/chunk-collision.cpp
@@ -117,7 +117,7 @@ start:
}
else
{
- for (auto i = 0uz; i < res.size; i++)
+ for (auto i = 0u; i < res.size; i++)
filter_through_holes(rtree, id, res.array[i].min, res.array[i].max, has_holes);
}
}
@@ -151,7 +151,7 @@ void chunk::ensure_passability() noexcept
has_holes |= add_holes_from_chunk<true>(*_rtree, *nbs[i], world::neighbor_offsets[i]);
}
- for (auto i = 0uz; i < TILE_COUNT; i++)
+ for (auto i = 0u; i < TILE_COUNT; i++)
{
if (const auto* atlas = ground_atlas_at(i))
{
@@ -163,7 +163,7 @@ void chunk::ensure_passability() noexcept
filter_through_holes(*_rtree, id, min, max, has_holes);
}
}
- for (auto i = 0uz; i < TILE_COUNT; i++)
+ for (auto i = 0u; i < TILE_COUNT; i++)
{
auto tile = operator[](i);
if (const auto* atlas = tile.wall_north_atlas().get())