summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-09-04 19:09:31 +0000
committerrubidium <rubidium@openttd.org>2008-09-04 19:09:31 +0000
commit236c61336558d542135f3f64ecb6bc3c54c91666 (patch)
treeb172d049753578b1f8a9c770b8a60eb94fd63429
parent199a53c4ca3d39c19d91544cf2ee030dcb1d498c (diff)
downloadopenttd-236c61336558d542135f3f64ecb6bc3c54c91666.tar.xz
(svn r14243) -Fix [FS#2269]: clicking on the smallmap didn't break the "follow vehicle in main viewport".
-rw-r--r--src/smallmap_gui.cpp1
1 files changed, 1 insertions, 0 deletions
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);