summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2015-02-26 20:26:45 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2015-02-26 20:26:45 +0100
commit81e8577cfd9d1a8dd40ca1e9fc25c83f990b7f82 (patch)
tree2c2dbd98772e5afeedf7ab2ca149b2395a86b86e /src
parentIce finisher uses GetSnowStartHeight instead of specific biomes (diff)
downloadcuberite-81e8577cfd9d1a8dd40ca1e9fc25c83f990b7f82.tar
cuberite-81e8577cfd9d1a8dd40ca1e9fc25c83f990b7f82.tar.gz
cuberite-81e8577cfd9d1a8dd40ca1e9fc25c83f990b7f82.tar.bz2
cuberite-81e8577cfd9d1a8dd40ca1e9fc25c83f990b7f82.tar.lz
cuberite-81e8577cfd9d1a8dd40ca1e9fc25c83f990b7f82.tar.xz
cuberite-81e8577cfd9d1a8dd40ca1e9fc25c83f990b7f82.tar.zst
cuberite-81e8577cfd9d1a8dd40ca1e9fc25c83f990b7f82.zip
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