Use e here, instead of self, for more clarity.

This commit is contained in:
Steve 2018-02-11 11:09:16 +00:00
parent d75d3ec9cd
commit 57aaafa789
1 changed files with 2 additions and 2 deletions

View File

@ -634,7 +634,7 @@ static int pushEntity(Entity *e, float dx, float dy)
self = e;
removeFromQuadtree(self, &world.quadtree);
removeFromQuadtree(e, &world.quadtree);
if (dx != 0)
{
@ -652,7 +652,7 @@ static int pushEntity(Entity *e, float dx, float dy)
e->y = position.y;
}
addToQuadtree(self, &world.quadtree);
addToQuadtree(e, &world.quadtree);
self = oldSelf;