mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-11 19:53:52 +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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue