Remove AUTO_VAR macro and _toString function (#592)

This commit is contained in:
void_17
2026-03-06 02:11:18 +07:00
committed by GitHub
parent 7d6658fe5b
commit 55231bb8d3
294 changed files with 5067 additions and 5773 deletions

View File

@@ -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;