Mercurial > hg > openttd
changeset 16067:e8e9ee785788 draft
(svn r20760) -Cleanup (r20753): remove unused CheckMouseOverVehicle()
author | smatz <smatz@openttd.org> |
---|---|
date | Tue, 07 Sep 2010 11:03:46 +0000 |
parents | a49f518668dd |
children | 75bd5a94eab3 |
files | src/viewport.cpp src/viewport_func.h |
diffstat | 2 files changed, 0 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1836,23 +1836,6 @@ 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;
--- a/src/viewport_func.h +++ b/src/viewport_func.h @@ -63,8 +63,6 @@ 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);