- if((xd > 0 && current->x < orig_x) || (xd < 0 && current->x > orig_x))
- current->x = orig_x;
- if((yd > 0 && current->y < orig_y) || (yd < 0 && current->y > orig_y))
- current->y = orig_y;
-
- *old = *current;
-}
-
-Tile* gettile(float x, float y)
-{
- return TileManager::instance()->get(World::current()->get_level()->gettileid(x, y));
-}
-
-bool issolid(float x, float y)
-{
- Tile* tile = gettile(x,y);
- return tile && tile->solid;
-}
-
-bool isunisolid(float x, float y)
-{
- Tile* tile = gettile(x,y);
- return tile && tile->unisolid;
-}
-
-
-bool isbrick(float x, float y)
-{
- Tile* tile = gettile(x,y);
- return tile && tile->brick;
-}
-
-bool isice(float x, float y)
-{
- Tile* tile = gettile(x,y);
- return tile && tile->ice;
-}
-
-bool isspike(float x, float y)
-{
- Tile* tile = gettile(x,y);
- return tile && tile->spike;