mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-12 20:23:51 +00:00
Remove AUTO_VAR macro and _toString function (#592)
This commit is contained in:
parent
7d6658fe5b
commit
55231bb8d3
294 changed files with 5067 additions and 5773 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue