From 55231bb8d3e1a4e2752ac3d444c4287eb0ca4e8b Mon Sep 17 00:00:00 2001 From: void_17 <61356189+void2012@users.noreply.github.com> Date: Fri, 6 Mar 2026 02:11:18 +0700 Subject: Remove AUTO_VAR macro and _toString function (#592) --- Minecraft.World/BiomeCache.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Minecraft.World/BiomeCache.cpp') diff --git a/Minecraft.World/BiomeCache.cpp b/Minecraft.World/BiomeCache.cpp index 0d9c017c..b93ce32e 100644 --- a/Minecraft.World/BiomeCache.cpp +++ b/Minecraft.World/BiomeCache.cpp @@ -72,9 +72,9 @@ BiomeCache::~BiomeCache() // 4J Stu - Delete source? // delete source; - for(AUTO_VAR(it, all.begin()); it != all.end(); ++it) + for( auto& it : all ) { - delete (*it); + delete it; } DeleteCriticalSection(&m_CS); } @@ -86,7 +86,7 @@ BiomeCache::Block *BiomeCache::getBlockAt(int x, int z) x >>= ZONE_SIZE_BITS; z >>= ZONE_SIZE_BITS; __int64 slot = (((__int64) x) & 0xffffffffl) | ((((__int64) z) & 0xffffffffl) << 32l); - AUTO_VAR(it, cached.find(slot)); + auto it = cached.find(slot); Block *block = NULL; if (it == cached.end()) { @@ -130,7 +130,7 @@ void BiomeCache::update() { lastUpdateTime = now; - for (AUTO_VAR(it, all.begin()); it != all.end();) + for (auto it = all.begin(); it != all.end();) { Block *block = *it; __int64 time = now - block->lastUse; -- cgit v1.2.3