aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/ExplodePacket.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/ExplodePacket.cpp
parent7d6658fe5b3095f35093701b5ab669ffc291e875 (diff)
Remove AUTO_VAR macro and _toString function (#592)
Diffstat (limited to 'Minecraft.World/ExplodePacket.cpp')
-rw-r--r--Minecraft.World/ExplodePacket.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/Minecraft.World/ExplodePacket.cpp b/Minecraft.World/ExplodePacket.cpp
index aec5b261..30d09e46 100644
--- a/Minecraft.World/ExplodePacket.cpp
+++ b/Minecraft.World/ExplodePacket.cpp
@@ -27,16 +27,12 @@ ExplodePacket::ExplodePacket(double x, double y, double z, float r, unordered_se
this->r = r;
m_bKnockbackOnly = knockBackOnly;
- if(toBlow != NULL)
+ if(toBlow != nullptr)
{
this->toBlow.assign(toBlow->begin(),toBlow->end());
- //for( AUTO_VAR(it, toBlow->begin()); it != toBlow->end(); it++ )
- //{
- // this->toBlow.push_back(*it);
- //}
}
- if (knockback != NULL)
+ if (knockback != nullptr)
{
knockbackX = (float) knockback->x;
knockbackY = (float) knockback->y;
@@ -89,13 +85,8 @@ void ExplodePacket::write(DataOutputStream *dos) //throws IOException
int yp = (int)y;
int zp = (int)z;
- //(Myset::const_iterator it = c1.begin();
- //it != c1.end(); ++it)
-
- for( AUTO_VAR(it, toBlow.begin()); it != toBlow.end(); it++ )
+ for ( const TilePos& tp : toBlow )
{
- TilePos tp = *it;
-
int xx = tp.x-xp;
int yy = tp.y-yp;
int zz = tp.z-zp;