From dd927661cfd5dacbf8b4efa26c6616e61c617d2b Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 4 Sep 2008 19:09:31 +0000 Subject: (svn r14243) -Fix [FS#2269]: clicking on the smallmap didn't break the "follow vehicle in main viewport". --- src/smallmap_gui.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/smallmap_gui.cpp') diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index 326ca7391..6343a5d83 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -901,6 +901,7 @@ public: Point pt = RemapCoords(this->scroll_x, this->scroll_y, 0); Window *w = FindWindowById(WC_MAIN_WINDOW, 0); + w->viewport->follow_vehicle = INVALID_VEHICLE; w->viewport->dest_scrollpos_x = pt.x + ((_cursor.pos.x - this->left + 2) << 4) - (w->viewport->virtual_width >> 1); w->viewport->dest_scrollpos_y = pt.y + ((_cursor.pos.y - this->top - 16) << 4) - (w->viewport->virtual_height >> 1); -- cgit v1.2.3-54-g00ecf