mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-03 18:45:01 +00:00
Merge branch 'upstream-dev' into cleanup/nullptr-replacement
# Conflicts: # Minecraft.Client/Network/PlayerChunkMap.cpp # Minecraft.Client/Network/PlayerList.cpp # Minecraft.Client/Network/ServerChunkCache.cpp # Minecraft.Client/Platform/Common/Consoles_App.cpp # Minecraft.Client/Platform/Common/DLC/DLCManager.cpp # Minecraft.Client/Platform/Common/GameRules/LevelGenerationOptions.cpp # Minecraft.Client/Platform/Common/GameRules/LevelRuleset.cpp # Minecraft.Client/Platform/Common/Tutorial/Tutorial.cpp # Minecraft.Client/Platform/Common/Tutorial/TutorialTask.cpp # Minecraft.Client/Platform/Common/UI/IUIScene_CreativeMenu.cpp # Minecraft.Client/Platform/Common/UI/UIComponent_Panorama.cpp # Minecraft.Client/Platform/Common/UI/UIController.cpp # Minecraft.Client/Platform/Common/UI/UIController.h # Minecraft.Client/Platform/Extrax64Stubs.cpp # Minecraft.Client/Platform/Windows64/4JLibs/inc/4J_Input.h # Minecraft.Client/Platform/Windows64/4JLibs/inc/4J_Storage.h # Minecraft.Client/Player/EntityTracker.cpp # Minecraft.Client/Player/ServerPlayer.cpp # Minecraft.Client/Rendering/EntityRenderers/PlayerRenderer.cpp # Minecraft.Client/Textures/Packs/DLCTexturePack.cpp # Minecraft.Client/Textures/Stitching/StitchedTexture.cpp # Minecraft.Client/Textures/Stitching/TextureMap.cpp # Minecraft.Client/Textures/Textures.cpp # Minecraft.World/Blocks/NotGateTile.cpp # Minecraft.World/Blocks/PressurePlateTile.cpp # Minecraft.World/Blocks/TileEntities/PotionBrewing.cpp # Minecraft.World/Enchantments/EnchantmentHelper.cpp # Minecraft.World/Entities/HangingEntity.cpp # Minecraft.World/Entities/LeashFenceKnotEntity.cpp # Minecraft.World/Entities/LivingEntity.cpp # Minecraft.World/Entities/Mobs/Boat.cpp # Minecraft.World/Entities/Mobs/Minecart.cpp # Minecraft.World/Entities/Mobs/Witch.cpp # Minecraft.World/Entities/SyncedEntityData.cpp # Minecraft.World/Items/LeashItem.cpp # Minecraft.World/Items/PotionItem.cpp # Minecraft.World/Level/BaseMobSpawner.cpp # Minecraft.World/Level/CustomLevelSource.cpp # Minecraft.World/Level/Level.cpp # Minecraft.World/Level/Storage/DirectoryLevelStorage.cpp # Minecraft.World/Level/Storage/McRegionLevelStorage.cpp # Minecraft.World/Level/Storage/RegionFileCache.cpp # Minecraft.World/Player/Player.cpp # Minecraft.World/WorldGen/Biomes/BiomeCache.cpp # Minecraft.World/WorldGen/Features/RandomScatteredLargeFeature.cpp # Minecraft.World/WorldGen/Layers/BiomeOverrideLayer.cpp
This commit is contained in:
@@ -17,7 +17,7 @@ StructureStart::StructureStart(int x, int z) {
|
||||
}
|
||||
|
||||
StructureStart::~StructureStart() {
|
||||
for (AUTO_VAR(it, pieces.begin()); it != pieces.end(); it++) {
|
||||
for (auto it = pieces.begin(); it != pieces.end(); it++) {
|
||||
delete (*it);
|
||||
}
|
||||
delete boundingBox;
|
||||
@@ -29,7 +29,7 @@ std::list<StructurePiece*>* StructureStart::getPieces() { return &pieces; }
|
||||
|
||||
void StructureStart::postProcess(Level* level, Random* random,
|
||||
BoundingBox* chunkBB) {
|
||||
AUTO_VAR(it, pieces.begin());
|
||||
auto it = pieces.begin();
|
||||
|
||||
while (it != pieces.end()) {
|
||||
if ((*it)->getBoundingBox()->intersects(chunkBB) &&
|
||||
@@ -46,7 +46,7 @@ void StructureStart::postProcess(Level* level, Random* random,
|
||||
void StructureStart::calculateBoundingBox() {
|
||||
boundingBox = BoundingBox::getUnknownBox();
|
||||
|
||||
for (AUTO_VAR(it, pieces.begin()); it != pieces.end(); it++) {
|
||||
for (auto it = pieces.begin(); it != pieces.end(); it++) {
|
||||
StructurePiece* piece = *it;
|
||||
boundingBox->expand(piece->getBoundingBox());
|
||||
}
|
||||
@@ -61,7 +61,7 @@ CompoundTag* StructureStart::createTag(int chunkX, int chunkZ) {
|
||||
tag->put(L"BB", boundingBox->createTag(L"BB"));
|
||||
|
||||
ListTag<CompoundTag>* childrenTags = new ListTag<CompoundTag>(L"Children");
|
||||
for (AUTO_VAR(it, pieces.begin()); it != pieces.end(); ++it) {
|
||||
for (auto it = pieces.begin(); it != pieces.end(); ++it) {
|
||||
StructurePiece* piece = *it;
|
||||
childrenTags->add(piece->createTag());
|
||||
}
|
||||
@@ -107,7 +107,7 @@ void StructureStart::moveBelowSeaLevel(Level* level, Random* random,
|
||||
// move all bounding boxes
|
||||
int dy = y1Pos - boundingBox->y1;
|
||||
boundingBox->move(0, dy, 0);
|
||||
for (AUTO_VAR(it, pieces.begin()); it != pieces.end(); it++) {
|
||||
for (auto it = pieces.begin(); it != pieces.end(); it++) {
|
||||
StructurePiece* piece = *it;
|
||||
piece->getBoundingBox()->move(0, dy, 0);
|
||||
}
|
||||
@@ -128,7 +128,7 @@ void StructureStart::moveInsideHeights(Level* level, Random* random,
|
||||
// move all bounding boxes
|
||||
int dy = y0Pos - boundingBox->y0;
|
||||
boundingBox->move(0, dy, 0);
|
||||
for (AUTO_VAR(it, pieces.begin()); it != pieces.end(); it++) {
|
||||
for (auto it = pieces.begin(); it != pieces.end(); it++) {
|
||||
StructurePiece* piece = *it;
|
||||
piece->getBoundingBox()->move(0, dy, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user