(svn r14243) -Fix [FS#2269]: clicking on the smallmap didn't break the "follow vehicle in main viewport".
authorrubidium
Thu, 04 Sep 2008 19:09:31 +0000
changeset 10075 38e5b4db10d9
parent 10074 d6bf81ae7d87
child 10076 bdf576e96502
(svn r14243) -Fix [FS#2269]: clicking on the smallmap didn't break the "follow vehicle in main viewport".
src/smallmap_gui.cpp
--- a/src/smallmap_gui.cpp	Thu Sep 04 15:27:21 2008 +0000
+++ b/src/smallmap_gui.cpp	Thu Sep 04 19:09:31 2008 +0000
@@ -901,6 +901,7 @@
 
 				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);