X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcollision_grid_iterator.h;h=3d566616164265a1f5ca0829358cdb7458e1e2dc;hb=22901c90fe1a4b0d5a6ef8fccb2494699b888e32;hp=d0f0fb844b5f45edec573a1add8b60aa6091652f;hpb=c0093d25093395cb62fc2526ab42be65a9f015b8;p=supertux.git diff --git a/src/collision_grid_iterator.h b/src/collision_grid_iterator.h index d0f0fb844..3d5666161 100644 --- a/src/collision_grid_iterator.h +++ b/src/collision_grid_iterator.h @@ -17,20 +17,17 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. - #ifndef __COLLISION_GRID_ITERATOR_H__ #define __COLLISION_GRID_ITERATOR_H__ -#include "math/rectangle.h" - -using namespace SuperTux; +#include "math/rect.h" class CollisionGrid; class CollisionGridIterator { public: - CollisionGridIterator(CollisionGrid& newgrid, const Rectangle& bbox) + CollisionGridIterator(CollisionGrid& newgrid, const Rect& bbox) : grid(newgrid) { start_x = int(bbox.p1.x / grid.cell_width) - 2;