Revert "Project modernization (#630)"
This code was not tested and breaks in Release builds, reverting to restore
functionality of the nightly. All in-game menus do not work and generating
a world crashes.
This reverts commit a9be52c41a.
This commit is contained in:
@@ -67,7 +67,7 @@ bool RandomScatteredLargeFeature::isFeatureChunk(int x, int z, bool bIsSuperflat
|
||||
|
||||
bool forcePlacement = false;
|
||||
LevelGenerationOptions *levelGenOptions = app.getLevelGenerationOptions();
|
||||
if( levelGenOptions != nullptr )
|
||||
if( levelGenOptions != NULL )
|
||||
{
|
||||
forcePlacement = levelGenOptions->isFeatureChunk(x,z,eFeature_Temples);
|
||||
}
|
||||
@@ -123,14 +123,14 @@ RandomScatteredLargeFeature::ScatteredFeatureStart::ScatteredFeatureStart(Level
|
||||
bool RandomScatteredLargeFeature::isSwamphut(int cellX, int cellY, int cellZ)
|
||||
{
|
||||
StructureStart *structureAt = getStructureAt(cellX, cellY, cellZ);
|
||||
if (structureAt == nullptr || !( dynamic_cast<ScatteredFeatureStart *>( structureAt ) ) || structureAt->pieces.empty())
|
||||
if (structureAt == NULL || !( dynamic_cast<ScatteredFeatureStart *>( structureAt ) ) || structureAt->pieces.empty())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
StructurePiece *first = nullptr;
|
||||
StructurePiece *first = NULL;
|
||||
auto it = structureAt->pieces.begin();
|
||||
if(it != structureAt->pieces.end() ) first = *it;
|
||||
return dynamic_cast<ScatteredFeaturePieces::SwamplandHut *>(first) != nullptr;
|
||||
return dynamic_cast<ScatteredFeaturePieces::SwamplandHut *>(first) != NULL;
|
||||
}
|
||||
|
||||
vector<Biome::MobSpawnerData *> *RandomScatteredLargeFeature::getSwamphutEnemies()
|
||||
|
||||
Reference in New Issue
Block a user