File diff r16056:e4e499b1332b → r16057:d7f49150c613
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;