1
0
Fork 0

changed int to unsigned

And return 0 instead of -1
This commit is contained in:
STRWarrior 2015-02-26 20:26:45 +01:00
parent ac2c88b451
commit 81e8577cfd
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}
}
}

View File

@ -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