1
0
Fork 0

small issues addressed in #4817 fixed because was merged to fast

This commit is contained in:
12xx12 2020-08-09 23:50:24 +02:00 committed by Alexander Harkness
parent 1b17ec4ca9
commit ec3de19c4e
3 changed files with 3 additions and 11 deletions

View File

@ -13645,7 +13645,7 @@ end
Type = "boolean", Type = "boolean",
}, },
}, },
Notes = "Returns if the biome is a mountain type biome. So mutations of the extreme hills biome" Notes = "Returns true if the biome is mountainous (mutations of the extreme hills biome)."
}, },
IsValidBlock = IsValidBlock =
{ {

View File

@ -151,7 +151,7 @@ extern bool IsBiomeVeryCold(EMCSBiome a_Biome);
Doesn't report Very Cold biomes, use IsBiomeVeryCold() for those. */ Doesn't report Very Cold biomes, use IsBiomeVeryCold() for those. */
extern bool IsBiomeCold(EMCSBiome a_Biome); extern bool IsBiomeCold(EMCSBiome a_Biome);
/** Returns true if the biome is a mountain type */ /** Returns true if the biome is mountainous (mutations of the extreme hills biome) */
extern bool IsBiomeMountain(EMCSBiome a_Biome); extern bool IsBiomeMountain(EMCSBiome a_Biome);
/** Returns the height when a biome when a biome starts snowing. */ /** Returns the height when a biome when a biome starts snowing. */

View File

@ -1783,15 +1783,7 @@ void cFinishGenOreNests::GenerateOre(
int BaseY = nestRnd % a_MaxHeight; int BaseY = nestRnd % a_MaxHeight;
nestRnd /= a_MaxHeight; nestRnd /= a_MaxHeight;
// if the NestSize is smaller then four this breaks // if the NestSize is smaller then four this breaks
int NestSize; int NestSize = a_NestSize + (nestRnd % (std::max(a_NestSize, 4) / 4)); // The actual nest size may be up to 1 / 4 larger
if (a_NestSize >= 4)
{
NestSize = a_NestSize + (nestRnd % (a_NestSize / 4)); // The actual nest size may be up to 1 / 4 larger
}
else
{
NestSize = a_NestSize;
}
int Num = 0; int Num = 0;
while (Num < NestSize) while (Num < NestSize)
{ {