aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/BiomeCache.cpp
diff options
context:
space:
mode:
authorvoid_17 <61356189+void2012@users.noreply.github.com>2026-03-06 02:11:18 +0700
committerGitHub <noreply@github.com>2026-03-06 02:11:18 +0700
commit55231bb8d3e1a4e2752ac3d444c4287eb0ca4e8b (patch)
tree953c537a5c66e328e9f4ab29626cf738112d53c0 /Minecraft.World/BiomeCache.cpp
parent7d6658fe5b3095f35093701b5ab669ffc291e875 (diff)
Remove AUTO_VAR macro and _toString function (#592)
Diffstat (limited to 'Minecraft.World/BiomeCache.cpp')
-rw-r--r--Minecraft.World/BiomeCache.cpp8
1 files changed, 4 insertions, 4 deletions
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;