summaryrefslogtreecommitdiffhomepage
path: root/src/chunk-scenery.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-09-10 23:04:15 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-09-11 14:20:10 +0200
commit87ebad7f6e6e552ec190b57f656aed53aa861e07 (patch)
tree3a37e92d7096d3b7b869553270d8c6f7d959da48 /src/chunk-scenery.cpp
parente76bd9d8a6a8e4226ae3dd492439d66ab977d006 (diff)
clean up some defs
Diffstat (limited to 'src/chunk-scenery.cpp')
-rw-r--r--src/chunk-scenery.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chunk-scenery.cpp b/src/chunk-scenery.cpp
index 6fc48821..5c0c90c6 100644
--- a/src/chunk-scenery.cpp
+++ b/src/chunk-scenery.cpp
@@ -111,7 +111,7 @@ auto chunk::make_topo_sort_data(object& e, uint32_t mesh_idx) -> topo_sort_data
const auto bb_min = tile_shader::project(Vector3(Vector2(bb_min_[0], bb_max_[1]), 0));
const auto bb_max = tile_shader::project(Vector3(Vector2(bb_max_[0], bb_min_[1]), 0));
const auto bb_len = bb_max[0] - bb_min[0];
- if (bb_len >= 1 && f.size[0] > uiTILE_SIZE[0])
+ if (bb_len >= 1 && f.size[0] > (unsigned)iTILE_SIZE[0])
{
data.slope = (bb_max[1]-bb_min[1])/bb_len;
data.bb_min = Vector2s(bb_min - px_start);