-
-
Notifications
You must be signed in to change notification settings - Fork 632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renamed cFinishGenSingleBiomeSingleTopBlock to cFinishGenSingleTopBlock #1254
Conversation
Now accepts a vector of biomes and a vector of allowed blocks.
// Returns true if the given blocktype may be below m_BlockType | ||
bool IsAllowedBlockBelow(BLOCKTYPE a_BlockBelow) | ||
{ | ||
for (BlockList::iterator itr = m_AllowedBelow.begin(); itr != m_AllowedBelow.end(); ++itr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can change this to a std::find.
Do not use /** Each allowed biome has a true value here, all the others are false. */
bool m_IsBiomeAllowed[256];
inline bool IsAllowedBiome(EMCSBiome a_Biome)
{
return m_IsBiomeAllowed[a_Biome];
} |
Slander! Misrepresentation of the truth! Compilation failed. |
How can I create a flat array? |
That's the first declaration in my code example, |
How did I not see that part. Sorry :S |
Done. |
@@ -456,12 +456,12 @@ void cFinishGenIce::GenFinish(cChunkDesc & a_ChunkDesc) | |||
//////////////////////////////////////////////////////////////////////////////// | |||
// cFinishGenLilypads: | |||
|
|||
int cFinishGenSingleBiomeSingleTopBlock::GetNumToGen(const cChunkDef::BiomeMap & a_BiomeMap) | |||
int cFinishGenSingleTopBlock::GetNumToGen(const cChunkDef::BiomeMap & a_BiomeMap) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change the comment above, too, will you?
Done |
AllowedBiomes.push_back(biMesaPlateauFM); | ||
AllowedBiomes.push_back(biMesaPlateauM); | ||
|
||
// A list with all the allowed blocks that can be below the lilypad. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lilypad -> dead bush (or death bush? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops ;)
Removed whitespace fixed dead bush comment
Done |
Renamed cFinishGenSingleBiomeSingleTopBlock to cFinishGenSingleTopBlock
Now accepts a vector of biomes and a vector of allowed blocks.
Also the deadbushes finisher generates in mesa biomes as well.