diff options
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r-- | src/viewport.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp index 451d87110..a883ceb8e 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1836,23 +1836,6 @@ bool HandleViewportClicked(const ViewPort *vp, int x, int y) 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; |