Remove AUTO_VAR macro and _toString function (#592)
This commit is contained in:
1 parent
7d6658fe5b
commit
55231bb8d3
294 files changed
+5067
-5773
No files matched your search
@@ -123,14 +123,14 @@ void PistonPieceEntity::moveCollidedEntities(float progress, float amount)
|
||||
if (!entities->empty())
|
||||
{
|
||||
vector< shared_ptr<Entity> > collisionHolder;
|
||||
for( AUTO_VAR(it, entities->begin()); it != entities->end(); it++ )
|
||||
for(auto& it : *entities)
|
||||
{
|
||||
collisionHolder.push_back(*it);
|
||||
collisionHolder.push_back(it);
|
||||
}
|
||||
|
||||
for( AUTO_VAR(it, collisionHolder.begin()); it != collisionHolder.end(); it++ )
|
||||
for(auto& it : collisionHolder)
|
||||
{
|
||||
(*it)->move(amount * Facing::STEP_X[facing],
|
||||
it->move(amount * Facing::STEP_X[facing],
|
||||
amount * Facing::STEP_Y[facing],
|
||||
amount * Facing::STEP_Z[facing]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user