diff options
| author | untodesu <kirill@untode.su> | 2025-09-14 19:16:44 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-09-14 19:16:44 +0500 |
| commit | 8bcbd2729388edc63c82d77d314b583af1447c49 (patch) | |
| tree | 460c2b509372077f6adf95d72c4245988a580aed /game/client/world/chunk_mesher.cc | |
| parent | 7fc7fdb001bea8674fe0dbc1b962f3ec2702debb (diff) | |
| download | voxelius-8bcbd2729388edc63c82d77d314b583af1447c49.tar.bz2 voxelius-8bcbd2729388edc63c82d77d314b583af1447c49.zip | |
Cleanup math with qfengine ports again
Diffstat (limited to 'game/client/world/chunk_mesher.cc')
| -rw-r--r-- | game/client/world/chunk_mesher.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/game/client/world/chunk_mesher.cc b/game/client/world/chunk_mesher.cc index bc90a03..da90d2e 100644 --- a/game/client/world/chunk_mesher.cc +++ b/game/client/world/chunk_mesher.cc @@ -39,9 +39,9 @@ static const CachedChunkCoord get_cached_cpos(const chunk_pos& pivot, const chun if(pivot != cpos) {
chunk_pos delta = pivot - cpos;
- delta[0] = math::clamp<std::int64_t>(delta[0], -1, 1);
- delta[1] = math::clamp<std::int64_t>(delta[1], -1, 1);
- delta[2] = math::clamp<std::int64_t>(delta[2], -1, 1);
+ delta[0] = glm::clamp<std::int64_t>(delta[0], -1, 1);
+ delta[1] = glm::clamp<std::int64_t>(delta[1], -1, 1);
+ delta[2] = glm::clamp<std::int64_t>(delta[2], -1, 1);
if(delta[0]) {
return nx[delta[0] + 1];
|
