summaryrefslogtreecommitdiffstats
path: root/source/HeiGen.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/HeiGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/HeiGen.cpp b/source/HeiGen.cpp
index b2e9e48c8..551ae8804 100644
--- a/source/HeiGen.cpp
+++ b/source/HeiGen.cpp
@@ -288,7 +288,7 @@ HEIGHTTYPE cHeiGenBiomal::GetHeightAt(int a_RelX, int a_RelZ, int a_ChunkX, int
Height += BiomeCounts[i] * (int)(m_GenParam[i].m_BaseHeight + oct1 + oct2 + oct3);
}
int res = (HEIGHTTYPE)(Height / Sum);
- return min(250, max(res, 5));
+ return std::min(250, std::max(res, 5));
}
// No known biome around? Weird. Return a bogus value: