Skip to content

Commit

Permalink
changed int to unsigned
Browse files Browse the repository at this point in the history
And return 0 instead of -1
  • Loading branch information
NiLSPACE committed Feb 26, 2015
1 parent ac2c88b commit 81e8577
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/BiomeDef.cpp
Expand Up @@ -223,7 +223,7 @@ bool IsBiomeCold(EMCSBiome a_Biome)



int GetSnowStartHeight(EMCSBiome a_Biome)
unsigned GetSnowStartHeight(EMCSBiome a_Biome)
{
switch (a_Biome)
{
Expand All @@ -237,7 +237,7 @@ int GetSnowStartHeight(EMCSBiome a_Biome)
case biColdTaigaM:
{
// Always snow
return -1;
return 0;
}

case biExtremeHills:
Expand Down Expand Up @@ -341,7 +341,7 @@ int GetSnowStartHeight(EMCSBiome a_Biome)

default:
{
return -1;
return 0;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/BiomeDef.h
Expand Up @@ -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

0 comments on commit 81e8577

Please sign in to comment.