aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/BiomeCache.cpp
diff options
context:
space:
mode:
authorqwasdrizzel <145519042+qwasdrizzel@users.noreply.github.com>2026-03-05 17:17:45 -0600
committerGitHub <noreply@github.com>2026-03-05 17:17:45 -0600
commit0666959d312dc74903f55d1071488a90239330f1 (patch)
tree5c6886f7ec65a7828bc6e34a469514e418bcf78b /Minecraft.World/BiomeCache.cpp
parent9370cbc7d878df1615d8ce76bc459e8b414d0f19 (diff)
parenteed770b121aa4ce38f002db042d0137c24c6d344 (diff)
Merge branch 'smartcmd:main' into main
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;