summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-09 23:28:28 +0000
committerrubidium <rubidium@openttd.org>2009-01-09 23:28:28 +0000
commit61f19b6e3ece888a9994938cd38c11a861566920 (patch)
tree869a86427f29bccccb486ca8e6d56f573f97f7a9 /src/smallmap_gui.cpp
parent3ca73b0c4cca0e9db9b3df1b09e5a2f4a73cb3c4 (diff)
downloadopenttd-61f19b6e3ece888a9994938cd38c11a861566920.tar.xz
(svn r14946) -Fix: copying a location from the extra viewport to the main viewport did not cancel vehicle following
Diffstat (limited to 'src/smallmap_gui.cpp')
-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 324a213d4..01afe7fe4 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -1159,6 +1159,7 @@ public:
/* set this view to same location. Based on the center, adjusting for zoom */
w->viewport->dest_scrollpos_x = x - (w->viewport->virtual_width - this->viewport->virtual_width) / 2;
w->viewport->dest_scrollpos_y = y - (w->viewport->virtual_height - this->viewport->virtual_height) / 2;
+ w->viewport->follow_vehicle = INVALID_VEHICLE;
} break;
case EVW_VIEW_TO_MAIN: { // inverse location button (move this view to same spot as main view) 'Copy Location'