Changeset - r16057:d7f49150c613
[Not reviewed]
master
0 2 0
smatz - 14 years ago 2010-09-07 11:03:46
smatz@openttd.org
(svn r20760) -Cleanup (r20753): remove unused CheckMouseOverVehicle()
2 files changed with 0 insertions and 19 deletions:
0 comments (0 inline, 0 general)
src/viewport.cpp
Show inline comments
 
@@ -1836,23 +1836,6 @@ bool HandleViewportClicked(const ViewPor
 
	return CheckClickOnLandscape(vp, x, y);
 
}
 

	
 
Vehicle *CheckMouseOverVehicle()
 
{
 
	const Window *w;
 
	const ViewPort *vp;
 

	
 
	int x = _cursor.pos.x;
 
	int y = _cursor.pos.y;
 

	
 
	w = FindWindowFromPt(x, y);
 
	if (w == NULL) return NULL;
 

	
 
	vp = IsPtInWindowViewport(w, x, y);
 
	return (vp != NULL) ? CheckClickOnVehicle(vp, x, y) : NULL;
 
}
 

	
 

	
 

	
 
void PlaceObject()
 
{
 
	Point pt;
src/viewport_func.h
Show inline comments
 
@@ -63,8 +63,6 @@ void SetRedErrorSquare(TileIndex tile);
 
void SetTileSelectSize(int w, int h);
 
void SetTileSelectBigSize(int ox, int oy, int sx, int sy);
 

	
 
Vehicle *CheckMouseOverVehicle();
 

	
 
void ViewportDoDraw(const ViewPort *vp, int left, int top, int right, int bottom);
 

	
 
bool ScrollWindowTo(int x, int y, int z, Window *w, bool instant = false);
0 comments (0 inline, 0 general)