remove unused function display::unit_image_on
This commit is contained in:
parent
a28f0720e1
commit
530ecd97f1
2 changed files with 0 additions and 12 deletions
|
@ -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_;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue