remove unused function display::unit_image_on

This commit is contained in:
Mark de Wever 2007-02-16 21:57:34 +00:00
parent a28f0720e1
commit 530ecd97f1
2 changed files with 0 additions and 12 deletions

View file

@ -412,14 +412,6 @@ gamemap::location display::minimap_location_on(int x, int y)
return gamemap::location(int((x - rect.x)/xdiv),int((y-rect.y)/ydiv));
}
bool display::unit_image_on(int x, int y)
{
const SDL_Rect rect = unit_image_area();
return (x >= rect.x && y >= rect.y &&
x < rect.x + rect.w && y < rect.y + rect.h);
}
void display::scroll(int xmove, int ymove)
{
const int orig_x = xpos_;

View file

@ -166,10 +166,6 @@ public:
//location if the mouse isn't over the minimap.
gamemap::location minimap_location_on(int x, int y);
// given x,y co-ordinates of the mouse, returns whether the
// mouse is over the unit image or not
bool unit_image_on(int x, int y);
//sets the paths that are currently displayed as available for the unit
//to move along. All other paths will be greyed out.
void highlight_reach(const paths &paths_list);