summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/BiomeDef.cpp6
-rw-r--r--src/BiomeDef.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/BiomeDef.cpp b/src/BiomeDef.cpp
index 43f3ef0b1..bdc582863 100644
--- a/src/BiomeDef.cpp
+++ b/src/BiomeDef.cpp
@@ -223,7 +223,7 @@ bool IsBiomeCold(EMCSBiome a_Biome)
-int GetSnowStartHeight(EMCSBiome a_Biome)
+unsigned GetSnowStartHeight(EMCSBiome a_Biome)
{
switch (a_Biome)
{
@@ -237,7 +237,7 @@ int GetSnowStartHeight(EMCSBiome a_Biome)
case biColdTaigaM:
{
// Always snow
- return -1;
+ return 0;
}
case biExtremeHills:
@@ -341,7 +341,7 @@ int GetSnowStartHeight(EMCSBiome a_Biome)
default:
{
- return -1;
+ return 0;
}
}
}
diff --git a/src/BiomeDef.h b/src/BiomeDef.h
index cda12556a..9b2369e5f 100644
--- a/src/BiomeDef.h
+++ b/src/BiomeDef.h
@@ -130,6 +130,6 @@ Doesn't report Very Cold biomes, use IsBiomeVeryCold() for those. */
extern bool IsBiomeCold(EMCSBiome a_Biome);
/** Returns the height when a biome when a biome starts snowing.*/
-extern int GetSnowStartHeight(EMCSBiome a_Biome);
+extern unsigned GetSnowStartHeight(EMCSBiome a_Biome);
// tolua_end