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.Client/ParticleEngine.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Minecraft.Client/ParticleEngine.cpp') diff --git a/Minecraft.Client/ParticleEngine.cpp b/Minecraft.Client/ParticleEngine.cpp index a6f65fa6..7fe26063 100644 --- a/Minecraft.Client/ParticleEngine.cpp +++ b/Minecraft.Client/ParticleEngine.cpp @@ -22,7 +22,7 @@ ParticleEngine::ParticleEngine(Level *level, Textures *textures) this->level = level; } this->textures = textures; - + this->random = new Random(); } @@ -256,8 +256,8 @@ void ParticleEngine::moveParticleInList(shared_ptr particle, int sourc int l = particle->level->dimension->id == 0 ? 0 : ( particle->level->dimension->id == -1 ? 1 : 2); for (int tt = 0; tt < TEXTURE_COUNT; tt++) { - AUTO_VAR(it, find(particles[l][tt][source].begin(), particles[l][tt][source].end(), particle) ); - if(it != particles[l][tt][source].end() ) + auto it = find(particles[l][tt][source].begin(), particles[l][tt][source].end(), particle); + if(it != particles[l][tt][source].end() ) { (*it) = particles[l][tt][source].back(); particles[l][tt][source].pop_back(); @@ -277,5 +277,5 @@ wstring ParticleEngine::countParticles() total += particles[l][tt][list].size(); } } - return _toString(total); + return std::to_wstring(total); } -- cgit v1.2.3