Remove AUTO_VAR macro and _toString function (#592)
This commit is contained in:
@@ -13,7 +13,7 @@ NetherBridgeFeature::NetherBridgeFeature() : StructureFeature()
|
||||
bridgeEnemies.push_back(new Biome::MobSpawnerData(eTYPE_BLAZE, 10, 2, 3));
|
||||
bridgeEnemies.push_back(new Biome::MobSpawnerData(eTYPE_PIGZOMBIE, 5, 4, 4));
|
||||
bridgeEnemies.push_back(new Biome::MobSpawnerData(eTYPE_SKELETON, 10, 4, 4));
|
||||
bridgeEnemies.push_back(new Biome::MobSpawnerData(eTYPE_LAVASLIME, 3, 4, 4));
|
||||
bridgeEnemies.push_back(new Biome::MobSpawnerData(eTYPE_LAVASLIME, 3, 4, 4));
|
||||
isSpotSelected=false;
|
||||
netherFortressPos = NULL;
|
||||
|
||||
@@ -38,7 +38,7 @@ bool NetherBridgeFeature::isFeatureChunk(int x, int z, bool bIsSuperflat)
|
||||
{
|
||||
// 4J Stu - New implementation to force a nether fortress
|
||||
if (!isSpotSelected)
|
||||
{
|
||||
{
|
||||
// Set the random
|
||||
random->setSeed(level->getSeed());
|
||||
random->nextInt();
|
||||
@@ -119,8 +119,8 @@ NetherBridgeFeature::NetherBridgeStart::NetherBridgeStart(Level *level, Random *
|
||||
while (!pendingChildren->empty())
|
||||
{
|
||||
int pos = random->nextInt((int)pendingChildren->size());
|
||||
AUTO_VAR(it, pendingChildren->begin() + pos);
|
||||
StructurePiece *structurePiece = *it;
|
||||
auto it = pendingChildren->begin() + pos;
|
||||
StructurePiece *structurePiece = *it;
|
||||
pendingChildren->erase(it);
|
||||
structurePiece->addChildren(start, &pieces, random);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user