changed int to unsigned
And return 0 instead of -1
This commit is contained in:
parent
ac2c88b451
commit
81e8577cfd
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user