1
0

formatting and commenting fixes

This commit is contained in:
p-mcgowan 2014-12-01 17:28:46 -08:00
parent cb584a87bd
commit 3bf111c69e
2 changed files with 6 additions and 6 deletions

View File

@ -392,11 +392,11 @@ void cFinishGenSprinkleFoliage::GenFinish(cChunkDesc & a_ChunkDesc)
bool cFinishGenSprinkleFoliage::IsDesertVariant(EMCSBiome a_biome)
bool cFinishGenSprinkleFoliage::IsDesertVariant(EMCSBiome a_Biome)
{
return a_biome == biDesertHills ||
a_biome == biDesert ||
a_biome == biDesertM;
return (a_Biome == biDesertHills) ||
(a_Biome == biDesert ) ||
(a_Biome == biDesertM );
}

View File

@ -149,8 +149,8 @@ protected:
/// Tries to place sugarcane at the coords specified, returns true if successful
bool TryAddSugarcane(cChunkDesc & a_ChunkDesc, int a_RelX, int a_RelY, int a_RelZ);
// Checks if biome is a desert to spawn cacti as opposed to just sand
bool IsDesertVariant(EMCSBiome a_biome);
// Returns true is the specified biome is a desert or its variant
static bool IsDesertVariant(EMCSBiome a_biome);
// cFinishGen override:
virtual void GenFinish(cChunkDesc & a_ChunkDesc) override;